npm.io
2.0.0-alpha.4 • Published 4 years ago

@yozora/react-break

Licence
MIT
Version
2.0.0-alpha.4
Deps
0
Size
7 kB
Vulns
0
Weekly
0
Stars
7

@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-break
  • yarn

    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'.