@hashicorp/design-system-components
Version:
Helios Design System Components
27 lines (26 loc) • 1.09 kB
TypeScript
/**
* Copyright IBM Corp. 2021, 2025
* SPDX-License-Identifier: MPL-2.0
*/
import type { TemplateOnlyComponent } from '@ember/component/template-only';
import type { WithBoundArgs } from '@glint/template';
import HdsFormToggleField from './field';
import type { HdsFormFieldsetSignature } from '../fieldset/index';
export interface HdsFormToggleGroupSignature {
Args: HdsFormFieldsetSignature['Args'] & {
name?: string;
};
Blocks: {
default: [
{
Legend?: HdsFormFieldsetSignature['Blocks']['default'][0]['Legend'];
HelperText?: HdsFormFieldsetSignature['Blocks']['default'][0]['HelperText'];
ToggleField?: WithBoundArgs<typeof HdsFormToggleField, 'contextualClass' | 'isRequired' | 'extraAriaDescribedBy'>;
Error?: HdsFormFieldsetSignature['Blocks']['default'][0]['Error'];
}
];
};
Element: HdsFormFieldsetSignature['Element'];
}
declare const HdsFormToggleGroup: TemplateOnlyComponent<HdsFormToggleGroupSignature>;
export default HdsFormToggleGroup;