mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
15 lines
401 B
Svelte
15 lines
401 B
Svelte
<script lang="ts">
|
|
import { Select, SelectItem } from "carbon-components-svelte";
|
|
</script>
|
|
|
|
<Select labelText="Falsy text">
|
|
<SelectItem value={-1} text="" />
|
|
<SelectItem value={0} text="Zero" />
|
|
<SelectItem value={1} text="One" />
|
|
</Select>
|
|
|
|
<Select labelText="Undefined text">
|
|
<SelectItem value={2} />
|
|
<SelectItem value={0} text="Zero" />
|
|
<SelectItem value={1} text="One" />
|
|
</Select>
|