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

2.0.0-alpha.4 • Public • Published

@yozora/react-blockquote


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

Install

  • npm

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

    yarn add @yozora/react-blockquote

Usage

  • Basic:

    import React from 'react'
    import Blockquote from '@yozora/react-blockquote'
    import '@yozora/react-blockquote/lib/esm/index.css'
    
    const wrapper = (
      <Blockquote style={{ color: 'orange', fontSize: '16px' }}>
        some text1
        <span>some text2</span>
      </Blockquote>
    )

Props

Name Type Required Default Description
children React.ReactNode false - Blockquote 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-blockquote'

Related

Package Sidebar

Install

npm i @yozora/react-blockquote

Weekly Downloads

1

Version

2.0.0-alpha.4

License

MIT

Unpacked Size

8.66 kB

Total Files

8

Last publish

Collaborators

  • lemonclown