@yozora/react-footnote-reference
v2.0.0-alpha.4
Published
render markdown footnote-reference in react
Downloads
4
Maintainers
Readme
This component is for rendering the FootnoteReference data produced by
@yozora/tokenizer-footnote-reference.
This component has been built into @yozora/react-markdown, you can use it directly.
Install
npm
npm install --save @yozora/react-footnote-referenceyarn
yarn add @yozora/react-footnote-reference
Usage
Basic:
import React from 'react' import FootnoteReference from '@yozora/react-footnote-reference' const wrapper = ( <FootnoteReference identifier="footnote-1" label="1" style={{ color: 'orange', fontSize: '16px' }}> /> )
Props
Name | Type | Required | Default | Description
:----------:|:---------------------:|:---------:|:-------:|:-------------
className | string | false | - | Root css class
identifier| string | true | - | Footnote reference identifier
label | string | true | - | Footnote reference label
style | React.CSSProperties | false | - | Root css style
identifier: The prefixreference-will be added automatically.
className: The root element of this component will always bind with the CSS class'yozora-footnote-reference'
