DocSpace-client/packages/components/tag
2023-07-11 13:57:11 +02:00
..
index.js Web: Components: fixed onClickOutside error 2023-05-30 17:07:22 +05:00
README.md Web: Moved all clients app to packages directory 2022-07-22 22:01:25 +03:00
styled-tag.js Web: Components: Remove unnecessary defaultProps expanding 2023-07-11 13:57:11 +02:00
tag.stories.js figma links were added 2023-07-03 13:31:26 +05: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