import { CSSResultGroup } from "lit"; import { SigveloElement } from "@mcp-b/wc-support/base/sigvelo-element"; //#region src/components/checkbox-group/checkbox-group.d.ts /** * * * @summary Attaches a label and description to a group of related checkboxes or switches. * @tag sigvelo-checkbox-group * @documentation https://design-system.sigvelo.com/docs/components/checkbox-group * @status stable * @since 1.0 * * @slot - The checkboxes to place in the group. * @slot label - The checkbox's label. For plain-text labels, you can use the `label` attribute instead. * @slot description - The checkbox's description. For plain-text descriptions, you can use the `description` * attribute instead. * * @csspart label - The element that contains the checkbox group's label. * @csspart description - The element that contains the checkbox group's description. * @csspart group - The element that wraps the grouped checkboxes. * * @cssproperty [--gap=1em] - The gap between checkboxes. * * @example Default * You can use checkboxes without grouping them but, when you want to apply a label and description to a group of related checkboxes, this component will come in handy. * * You can also use checkbox groups with toggle icons and toggle tags. * * ```html * * Catnip * Food * Litter * Treats * * ``` * * @example Labels and descriptions * You can use the `label` and `description` attributes to provide plain text labels and descriptions for the checkbox group. If you want to provide HTML, use the `label` and `description` slots instead. * * ```html * * * For more information, visit our website. * * Catnip * Food * Litter * Treats * * ``` * * @example Changing the orientation * To stack checkboxes on top of each other instead of side by side, set the `orientation` attribute to `vertical`. * * ```html * * Behind the couch * In the backyard * On top of the refrigerator * Under the bed * * ``` * * @example Grouping switches * You can also group switches in a checkbox group. For best results, avoid mixing checkboxes and switches in the same group. * * ```html * * Eating * Hiding * Purring * Sleeping * * ``` * * @example Adding a required indicator * Use the `required` attribute to show a required indicator in the checkbox group's label. This just adds a visual indicator. To perform validation, use the checkbox's `required` attribute and/or `setCustomValidity()` method. * * ```html *
* * Catnip * Food * Litter * Treats * *
* Submit *
* * * ``` */ declare class SigveloCheckboxGroup extends SigveloElement { static observeSlots: boolean; static styles: CSSResultGroup; /** * The checkbox's label. If you need to provide HTML in the label, use the `label` slot instead. */ label: string; /** * The checkbox's description. If you need to provide HTML in the description, use the `description` slot instead. */ description: string; /** The orientation of grouped items. */ orientation: "horizontal" | "vertical"; /** * Indicates at least one option in the checkbox group is required. This just adds a visual indicator. To perform * validation, use the checkbox's `required` attribute and/or `setCustomValidity()` method. */ required: boolean; render(): import("lit-html").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { "sigvelo-checkbox-group": SigveloCheckboxGroup; } } //#endregion export { SigveloCheckboxGroup as t };