@belong-ui/tag

0.1.29 • Public • Published

Tag Usage:

initialState = {
  isDropdownOpen: false,
};
<div className="styleguidist__input-wrap">
  <div>Read Only</div>
  <br />
  <Tag
    variant="default"
  >
    <span>Bangalore</span>
  </Tag>
  <br /><br />
  <div>Read Only/Status/Amber</div>
  <br />
  <Tag
    variant="warning"
  >
    <span>Bangalore</span>
  </Tag>
  <br /><br />
  <div>Actionable tag</div>
  <br />
  <Tag
    icon={<i className="fa fa-plus" />}
    onHover={(e) => { alert('Hover on Actionable tag'); }}
    onClick={(e) => { alert('Click on Actionable tag'); }}
  >
    <span>4 More</span>
  </Tag>
  <br /><br />
  <div>Actionable tag - With Icon—Right </div>
  <br />
  <Tag
    icon={<i className="fa fa-angle-double-down" />}
    iconPlacement="right"
    onHover={(e) => { alert('Hover on Actionable tag'); }}
    onClick={(e) => { alert('Click on Actionable tag'); }}
  >
    <span>Bangalore</span>
  </Tag>
  <br /><br />
  <div>Removable tag </div>
  <br />
  <Tag
    variant="removable"
    icon={<i className="fa fa-times" />}
    iconPlacement="right"
  >
    <span>Bangalore</span>
  </Tag>
</div>

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.291latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.291
0.1.280
0.1.270
0.1.260
0.1.250
0.1.240
0.1.230
0.1.220
0.1.210
0.1.200
0.1.190
0.1.180
0.1.170

Package Sidebar

Install

npm i @belong-ui/tag

Weekly Downloads

1

Version

0.1.29

License

MIT

Unpacked Size

26 kB

Total Files

9

Last publish

Collaborators

  • kaarthek
  • saurabh2112
  • theatsharma