@yozora/react-break
This component is for rendering the Break data produced by
@yozora/tokenizer-break.
This component has been built into @yozora/react-markdown, you can use it directly.
Install
npm
npm install --save @yozora/react-breakyarn
yarn add @yozora/react-break
Usage
Basic:
import React from 'react' import Break from '@yozora/react-break' import '@yozora/react-break/lib/esm/index.css' const wrapper = (<Break 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-break'.