2.0.5 • Published 6 years ago

the-tag v2.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

the-tag

Build Status npm Version JS Standard

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

NameTypeDescriptionDefault
textstringTag text
tostring

TheTagStyle

Style for TheTag

Props

NameTypeDescriptionDefault
optionsobjectStyle options{}

License

This software is released under the MIT License.

Links

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago