Skip to content

Commit

Permalink
feat(SelectableCard): docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinsawicki committed Dec 6, 2024
1 parent 97fd961 commit 283e170
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ import { SelectableCard } from '@livechat/design-system-react-components';

The `ThumbnailSelectableCard` is a component built on top of `SelectableCard`, containing its own interface aimed at easily building components for a specific use case.

##### Important

`label` prop is required, hovewer it will not be displayed if `customElement` is provided. (this rule also applies to the `description` and `icon`)

<Canvas of={ThumbnailSelectableCard.RadioTypeExamples} sourceState="none" />

#### Example implementation
Expand All @@ -62,6 +66,10 @@ import { ThumbnailSelectableCard } from '@livechat/design-system-react-component

The `GallerySelectableCard` is a component built on top of `SelectableCard`, containing its own interface aimed at easily building components for a specific use case.

##### Important

Since the interface does not assume mandatory props related to the UI for this type of card, you must remember to provide an `icon` or `customElemnt` or `label`, otherwise the card will be empty.

<Canvas of={GallerySelectableCard.RadioTypeExamples} sourceState="none" />

#### Example implementation
Expand Down

0 comments on commit 283e170

Please sign in to comment.