mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
docs(search): add on:clear example
This commit is contained in:
parent
96e9130601
commit
e84fdf5a62
1 changed files with 6 additions and 0 deletions
|
@ -17,6 +17,12 @@ The `Search` component size is extra-large by default. There are [large](#large-
|
||||||
|
|
||||||
<FileSource src="/framed/Search/SearchReactive" />
|
<FileSource src="/framed/Search/SearchReactive" />
|
||||||
|
|
||||||
|
### on:clear
|
||||||
|
|
||||||
|
The "clear" event is dispatched when clicking the "X" button in the search input element.
|
||||||
|
|
||||||
|
<Search value="Cloud functions" on:clear={() => console.log('clear')}/>
|
||||||
|
|
||||||
### Light variant
|
### Light variant
|
||||||
|
|
||||||
<Search light />
|
<Search light />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue