DocSpace-client/packages/components/selected-item
2023-04-17 17:48:34 +05:30
..
index.js Web: Components: SelectedItem - descriptions changed 2023-04-17 17:48:34 +05:30
README.md Web: Moved all clients app to packages directory 2022-07-22 22:01:25 +03:00
selected-item.stories.js Web: Components: corrected the display selected item all story 2023-04-03 18:20:24 +05:00
selected-item.test.js Web: Moved all clients app to packages directory 2022-07-22 22:01:25 +03:00
styled-selected-item.js Web: Moved all clients app to packages directory 2022-07-22 22:01:25 +03:00

SelectedItem

Usage

import SelectedItem from "@docspace/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