DocSpace-client/packages/shared/components/selected-item
2024-03-04 12:40:42 +05:00
..
index.tsx Shared:Components:SelectedItem: rewrite to typescript 2023-12-21 10:51:00 +03:00
README.md Shared:Components:SelectedItem: rewrite to typescript 2023-12-21 10:51:00 +03:00
SelectedItem.stories.tsx Shared:Components:SelectedItem: rewrite to typescript 2023-12-21 10:51:00 +03:00
SelectedItem.styled.ts Shared:Components:SelectedItem: rewrite to typescript 2023-12-21 10:51:00 +03:00
SelectedItem.test.tsx Shared:Components:SelectedItem: rewrite to typescript 2023-12-21 10:51:00 +03:00
SelectedItem.tsx Web: Client: JavascriptSDK: title was added to selected item 2024-03-04 12:40:42 +05:00
SelectedItem.types.tsx Web: Client: JavascriptSDK: title was added to selected item 2024-03-04 12:40:42 +05:00

SelectedItem

Usage

import { SelectedItem } from "@docspace/shared/components";
<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