DocSpace-client/packages/components/tag
2023-01-27 17:08:30 +03:00
..
index.js Web:Common/Client/Components: add PUBLIC_DIR alias 2023-01-27 17:08:30 +03:00
README.md Web: Moved all clients app to packages directory 2022-07-22 22:01:25 +03:00
styled-tag.js fixed hover and cleaned up code 2022-12-01 15:21:59 +03:00
tag.stories.js Web:Components:Tag: fix storybook 2023-01-20 12:44:52 +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