dap-design-system
Version:
Official design system for the DÁP (dap.gov.hu)
26 lines (25 loc) • 986 B
TypeScript
import { DdsElement } from '../../internal/dds-hu-element';
/**
* `dap-ds-option-group`
* @summary An option group is a container for grouping related option items.
* Used with dap-ds-select to create grouped options that render as native optgroup elements.
* @element dap-ds-option-group
* @title - Option group
*
* @property {string} label - The label of the option group (displayed in native optgroup).
* @property {boolean} disabled - Whether all options in the group are disabled.
*
* @slot - The option items in this group.
*
* @csspart base - The main option group container.
* @csspart label - The label of the option group.
*/
export default class DapDSOptionGroup extends DdsElement {
static tagName: string;
/** The label of the option group */
label?: string;
/** Whether all options in the group are disabled */
disabled?: boolean;
static readonly styles: import('lit').CSSResult;
render(): import('lit-html').TemplateResult<1>;
}