@synergy-design-system/components
Version:
36 lines (35 loc) • 1.37 kB
TypeScript
import type { CSSResultGroup } from 'lit';
import SynergyElement from '../../internal/synergy-element.js';
/**
* @summary Button groups can be used to group related buttons into sections.
* @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-button-group--docs
* @status stable
* @since 3.1.0
*
* @slot - One or more `<syn-button>` elements to display in the button group.
*
* @csspart base - The component's base wrapper.
*/
export default class SynButtonGroup extends SynergyElement {
static styles: CSSResultGroup;
defaultSlot: HTMLSlotElement;
disableRole: boolean;
/**
* A label to use for the button group. This won't be displayed on the screen, but it will be announced by assistive
* devices when interacting with the control and is strongly recommended.
*/
label: string;
/** The button-groups size. This affects all buttons within the group. */
size: 'small' | 'medium' | 'large';
/** The button-group's theme variant. This affects all buttons within the group. */
variant: 'filled' | 'outline';
private mutationObserver;
private handleFocus;
private handleBlur;
private handleMouseOver;
private handleMouseOut;
private handleSlotChange;
firstUpdated(): void;
disconnectedCallback(): void;
render(): import("lit").TemplateResult<1>;
}