DocSpace-client/packages/shared/components/article-item
2024-04-17 10:55:33 +02:00
..
ArticleItem.stories.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
ArticleItem.styled.ts Client: Login: DocEditor Remove increasing value for RTL 2024-04-17 10:55:33 +02:00
ArticleItem.test.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
ArticleItem.tsx Shared: ArticleItem: add currentColorScheme 2024-04-15 14:11:03 +03:00
ArticleItem.types.ts Shared: ArticleItem: add currentColorScheme 2024-04-15 14:11:03 +03:00
index.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
README.md Client: fix after rewrite to typescript 2023-12-27 17:45:22 +03:00

CatalogItem

Is a item of catalog

Usage

import {ArticleItem} from "@docspace/shared/components";```

```jsx
<ArticleItem />

Display catalog item. Can show only icon (showText property). If is it end of block - adding margin bottom.

Properties

Props Type Required Values Default Description
className string - - - Accepts class
id string - - - Accepts id
style obj, array - - - Accepts css style
icon string - - - Catalog item icon
text string - - - Catalog item text
showText bool - - false Tells when the catalog item should display text
onClick func - - - What the catalog item will trigger when clicked
showInitial bool - - false Tells when the catalog item should display initial text(first symbol of text)
isEndOfBlock bool - - false Tells when the catalog item should be end of block (adding margin-bottom)
isActive bool - - false Tells when the catalog item should be active (adding background color)
isDragging bool - - false Tells when the catalog item available for drag and drop
isDragActive bool - - false Tells when the catalog item active for drag and drop
showBadge bool - - false Tells when the catalog item should display badge
labelBadge string - - - Label for badge
iconBadge string - - - Icon for badge
onClickBadge func - - - What the catalog item badge will trigger when clicked