carbon-components-svelte
Version:
Svelte implementation of the Carbon Design System
29 lines (22 loc) • 653 B
TypeScript
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type $RestProps = SvelteHTMLElements["optgroup"];
type $Props = {
/**
* Set to `true` to disable the optgroup element
* @default false
*/
disabled?: boolean;
/**
* Specify the label attribute of the optgroup element
* @default "Provide label"
*/
label?: string;
[key: `data-${string}`]: any;
};
export type SelectItemGroupProps = Omit<$RestProps, keyof $Props> & $Props;
export default class SelectItemGroup extends SvelteComponentTyped<
SelectItemGroupProps,
Record<string, any>,
{ default: {} }
> {}