DocSpace-client/packages/asc-web-components/tag
2022-07-16 09:50:32 +03:00
..
index.js Web:Files: move logic from virtual room page to home page 2022-07-16 09:50:32 +03:00
README.md Web:Common: init tag component 2022-06-10 14:59:16 +03:00
styled-tag.js Web:Common: init tag component 2022-06-10 14:59:16 +03:00
tag.stories.js Web:Common: init tag component 2022-06-10 14:59:16 +03:00
tag.test.js Web:Common: init tag component 2022-06-10 14:59:16 +03:00

Room logo

Tag allow you display virtual room tag

Usage

import Tag from "@appserver/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