UNPKG

@hashicorp/design-system-components

Version:
25 lines (24 loc) 920 B
/** * Copyright IBM Corp. 2021, 2025 * SPDX-License-Identifier: MPL-2.0 */ import type { TemplateOnlyComponent } from '@ember/component/template-only'; import type { HdsFormFieldSignature } from '../field/index'; import type { HdsFormToggleBaseSignature } from './base'; export interface HdsFormToggleFieldSignature { Args: Omit<HdsFormFieldSignature['Args'], 'isOptional'> & { value?: string; }; Blocks: { default: [ { Label?: HdsFormFieldSignature['Blocks']['default'][0]['Label']; HelperText?: HdsFormFieldSignature['Blocks']['default'][0]['HelperText']; Error?: HdsFormFieldSignature['Blocks']['default'][0]['Error']; } ]; }; Element: HdsFormToggleBaseSignature['Element']; } declare const HdsFormToggleField: TemplateOnlyComponent<HdsFormToggleFieldSignature>; export default HdsFormToggleField;