Socket
Book a DemoInstallSign in
Socket

idyll-document

Package Overview
Dependencies
Maintainers
2
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idyll-document

The Idyll runtime, implemented as a React component.

latest
npmnpm
Version
4.0.0-alpha.4
Version published
Maintainers
2
Created
Source

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" */
/>

FAQs

Package last updated on 22 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts