2.0.5 • Published 6 years ago
the-tag v2.0.5
the-tag
Tag of the-components
Installation
$ npm install the-tag --save
Usage
Live Demo is hosted on GitHub Page
'use strict'
import React from 'react'
import { TheLinkStyle } from 'the-link'
import { TheRouter } from 'the-router'
import { TheTag, TheTagStyle } from 'the-tag'
class ExampleComponent extends React.PureComponent {
render () {
return (
<TheRouter.Hash>
<TheTagStyle/>
<TheLinkStyle/>
<TheTag text='hoge'/>
<TheTag text='fuge'/>
<TheTag text='bar' to='http://example.com'/>
</TheRouter.Hash>
)
}
}
export default ExampleComponent
Components
TheTag
Tag of the-components
Props
Name | Type | Description | Default |
---|---|---|---|
text | string | Tag text |
|
to | string |
|
TheTagStyle
Style for TheTag
Props
Name | Type | Description | Default |
---|---|---|---|
options | object | Style options | {} |
License
This software is released under the MIT License.