@draft-js-modules/hashtag
v0.1.0
Published
Draft.js Hashtag Module
Downloads
2
Maintainers
Readme
@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]