mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
parent
4f73b8b71a
commit
6c75c8a973
9 changed files with 243 additions and 0 deletions
15
src/components/Select/SelectItemGroup.svelte
Normal file
15
src/components/Select/SelectItemGroup.svelte
Normal file
|
@ -0,0 +1,15 @@
|
|||
<script>
|
||||
let className = undefined;
|
||||
export { className as class };
|
||||
export let disabled = false;
|
||||
export let label = 'Provide label';
|
||||
export let style = undefined;
|
||||
|
||||
import { cx } from '../../lib';
|
||||
|
||||
const _class = cx('--select-optgroup', className);
|
||||
</script>
|
||||
|
||||
<optgroup class={_class} {label} {disabled} {style}>
|
||||
<slot />
|
||||
</optgroup>
|
Loading…
Add table
Add a link
Reference in a new issue