@yozora/react-strong
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-alpha.4 • Public • Published

@yozora/react-strong


This component is for rendering the Strong data produced by @yozora/tokenizer-emphasis.
This component has been built into @yozora/react-markdown, you can use it directly.

Install

  • npm

    npm install --save @yozora/react-strong
  • yarn

    yarn add @yozora/react-strong

Usage

  • Basic:

    import React from 'react'
    import Strong from '@yozora/react-strong'
    import '@yozora/react-strong/lib/esm/index.css'
    
    const wrapper = (
      <Strong style={{ color: 'orange' }}>
        some text1
        <span>some text2</span>
      </Strong>
    )

Props

Name Type Required Default Description
children React.ReactNode false - Strong contents
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-strong'.

Related

Package Sidebar

Install

npm i @yozora/react-strong

Weekly Downloads

0

Version

2.0.0-alpha.4

License

MIT

Unpacked Size

7.85 kB

Total Files

8

Last publish

Collaborators

  • lemonclown