mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
17 lines
348 B
Svelte
17 lines
348 B
Svelte
<script lang="ts">
|
|
import { Search } from "carbon-components-svelte";
|
|
|
|
let value = "";
|
|
</script>
|
|
|
|
<Search
|
|
bind:value
|
|
labelText="Default search"
|
|
placeholder="Search"
|
|
closeButtonLabelText="Clear value"
|
|
on:clear={() => {
|
|
console.log("clear");
|
|
}}
|
|
/>
|
|
|
|
<Search disabled labelText="Disabled search" placeholder="Search disabled..." />
|