DocSpace-client/packages/components/selected-item
Aleksandr Lushkin 37efdc292a Merge branch 'develop' into feature/rtl-interface-direction
# Conflicts:
#	packages/client/src/components/panels/HotkeysPanel/index.js
#	packages/client/src/pages/Home/Section/Body/TableView/TableHeader.js
#	packages/components/date-time-picker/index.js
#	packages/components/selected-item/styled-selected-item.js
2023-07-26 17:47:13 +02:00
..
index.js Merge branch 'feature/public-room' of github.com:ONLYOFFICE/DocSpace into feature/public-room 2023-07-14 20:17:01 +05:00
README.md forwarded ref was added 2023-07-14 20:15:39 +05:00
selected-item.stories.js selectedItem component was updated 2023-06-13 12:29:01 +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 Merge branch 'develop' into feature/rtl-interface-direction 2023-07-26 17:47:13 +02: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
forwardedRef obj - - - Passes ref to component