0.1.0 • Published 5 years ago

@draft-js-modules/hashtag v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@draft-js-modules/hashtag

Installation

# using npm:
npm install --save @draft-js-modules/hashtag

# using yarn:
yarn add @draft-js-modules/hashtag

Usage

import { getHashtagModule } from '@draft-js-modules/hashtag'

const HashtagModule = getHashtagModule({
  Component: ({ children }) => {
    return (
      <span style={{ color: 'rebeccapurple' }}>
        {children}
      </span>
    )
  }
})

const modules = [HashtagModule]