DocSpace-client/packages/asc-web-components/selected-item
2021-12-14 18:11:19 +08:00
..
index.js Web:Components:SelectedItem: add support dark-theme 2021-12-14 18:11:19 +08:00
README.md Web: Components/Common: fix imports 2021-02-26 00:19:45 +03:00
selected-item.stories.js Web: Components: added story for SelectedItem 2021-03-10 16:47:42 +03:00
selected-item.test.js Web: Components: changed component hierarchy 2021-02-24 17:42:09 +03:00
styled-selected-item.js Web:Components:SelectedItem: add support dark-theme 2021-12-14 18:11:19 +08:00

SelectedItem

Usage

import SelectedItem from "@appserver/components/selected-item";
<SelectedItem
  text="sample text"
  onClick={() => console.log("onClose")}
></SelectedItem>

Properties

Props Type Required Values Default Description
className string - - - Accepts class
id string - - - Accepts id
isDisabled bool - - false Tells when the button should present a disabled state
isInline bool - - true Sets the 'display: inline-block' property
onClose func - - - What the selected item will trigger when clicked
style obj, array - - - Accepts css style
text string - - - Selected item text