Skip to content

Commit

Permalink
πŸ“(react) update stories for mono select
Browse files Browse the repository at this point in the history
- update description for searchable select with
options fetching
  • Loading branch information
daproclaima committed Sep 23, 2024
1 parent 0b45f51 commit 6e9a8cd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/react/src/components/Forms/Select/mono.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,15 @@ You can enable the text live filtering simply by using the `searchable` props.
You can enable the text live filtering simply by using the `searchable` prop, and the options fetching by providing
a callback (async or not) receiving the search term in its parameters in the `options` prop. This latter is triggered
every time the search term is different from the previous one. An optional `isLoading` prop can be used to show
a loader while the options are being fetched. You can also provide an optional `defaultValue` prop.
a loader while the options are being fetched. You can also provide an optional `defaultValue` prop. It works both in
controlled and uncontrolled state.

### uncontrolled
<Canvas of={Stories.SearchableUncontrolledWithAsyncOptionsFetchingAndDefaultValue} />

### controlled
<Canvas of={Stories.SearchableControlledWithAsyncOptionsFetching} />


## States

Expand Down

0 comments on commit 6e9a8cd

Please sign in to comment.