DocSpace-client/packages/components/tag
2022-11-09 14:29:30 +03:00
..
index.js Web:Components:Tag: fix close dropdown for mobile devices 2022-11-09 14:21:01 +03:00
README.md Web: Moved all clients app to packages directory 2022-07-22 22:01:25 +03:00
styled-tag.js Web:Components:Tag: delete margin for last tag 2022-11-09 14:29:30 +03:00
tag.stories.js Web: Moved all clients app to packages directory 2022-07-22 22:01:25 +03:00
tag.test.js Web: Moved all clients app to packages directory 2022-07-22 22:01:25 +03:00

Room logo

Tag allow you display virtual room tag

Usage

import Tag from "@docspace/components/tag";
<Tag
  tag="tag"
  label={"script"}
  isNewTag={false}
  isDisabled={false}
  onDelete={}
  onClick={}
  advancedOptions={}
  tagMaxWidth={}
/>
Props Type Required Values Default Description
id string - - - Accepts id
className string - - - Accepts class
style obj, array - - - Accepts css style
tag string - - - Accepts tag id
label string - - - Accepts the tag label
isNewTag boolean - - false Accepts the tag styles as new and add delete button
isDisabled boolean - - false Accepts the tag styles as disabled and disable click
onClick function - - - Accepts the function that called when tag clicked
onDelete function - - - Accepts the function that called when tag delete button clicked
tagMaxWidth string - - - Accepts the max width of tag
advancedOption object - - - Accepts the dropdowns options