idyll-document
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/idyll-document package

4.0.0-alpha.4 • Public • Published

idyll-document

The Idyll runtime, implemented as a React component.

Install

npm install --save idyll-document

Usage

import * as components from 'idyll-components'
<IdyllDocument markup={`# Hello World`} components={components} />

Options

<IdyllDocument
  ast={
    ast
  } /* optional, if you want to pass in a precompiled abstract syntax tree instead of markup */
  components={
    components
  } /* Map of components that may be referenced in markup */
  context={
    context
  } /* Add custom context hooks (see https://idyll-lang.org/docs/advanced-configuration) for more info */
  datasets={datasets} /* Map of datasets that may be referenced in markup */
  layout={layout} /* Which layout to use? e.g. "blog", "centered" */
  markup={markup} /* String of Idyll markup. Must provide either this OR ast */
  theme={theme} /* Which theme to use? e.g. "github" */
/>

Readme

Keywords

none

Package Sidebar

Install

npm i idyll-document

Weekly Downloads

29

Version

4.0.0-alpha.4

License

MIT

Unpacked Size

1.22 MB

Total Files

28

Last publish

Collaborators

  • bclinkinbeard
  • mathisonian