UNPKG

@hashicorp/design-system-components

Version:
28 lines (27 loc) 1.02 kB
/** * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ import type { HdsFormFieldSignature } from '../field'; import type { ComponentLike } from '@glint/template'; import type { HdsFormLabelSignature } from '../label'; import type { HdsFormHelperTextSignature } from '../helper-text'; import type { HdsFormErrorSignature } from '../error'; export interface HdsFormCheckboxFieldSignature { Args: Omit<HdsFormFieldSignature['Args'], 'isOptional'> & { value?: string; name?: string; }; Blocks: { default: [ { Label?: ComponentLike<HdsFormLabelSignature>; HelperText?: ComponentLike<HdsFormHelperTextSignature>; Error?: ComponentLike<HdsFormErrorSignature>; } ]; }; Element: HdsFormFieldSignature['Element']; } declare const HdsFormCheckboxField: import("@ember/component/template-only").TemplateOnlyComponent<HdsFormCheckboxFieldSignature>; export default HdsFormCheckboxField;