@yozora/react-thematic-break
v2.0.0-alpha.4
Published
render markdown thematicBreak node in react
Downloads
58
Maintainers
Readme
This component is for rendering the ThematicBreak data produced by
@yozora/tokenizer-thematic-break.
This component has been built into @yozora/react-markdown, you can use it directly.
Install
npm
npm install --save @yozora/react-thematic-break
yarn
yarn add @yozora/react-thematic-break
Usage
Basic:
import React from 'react' import ThematicBreak from '@yozora/react-thematic-break' import '@yozora/react-thematic-break/lib/esm/index.css' const wrapper = (<ThematicBreak style={ { color: 'orange' } } />)
Props
Name | Type | Required | Default | Description
:----------:|:---------------------:|:---------:|:-------:|:-------------
className
| string
| false
| - | Root css class
style
| React.CSSProperties
| false
| - | Root css style
className
: The root element of this component will always bind with the CSS class'yozora-thematic-break'
.