mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
17 lines
407 B
Svelte
17 lines
407 B
Svelte
<script>
|
|
/**
|
|
* Set to `true` to disable the optgroup element
|
|
* @type {boolean} [disabled=false]
|
|
*/
|
|
export let disabled = false;
|
|
|
|
/**
|
|
* Specify the label attribute of the optgroup element
|
|
* @type {string} [label="Provide label"]
|
|
*/
|
|
export let label = "Provide label";
|
|
</script>
|
|
|
|
<optgroup {label} {disabled} class:bx--select-optgroup={true} {...$$restProps}>
|
|
<slot />
|
|
</optgroup>
|