UNPKG

@hashicorp/design-system-components

Version:
26 lines (25 loc) 1.18 kB
/** * 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 type { HdsFormFieldSignature } from '../field/index'; import type { HdsFormTextareaBaseSignature } from './base'; import type HdsFormCharacterCountComponent from '../character-count/index'; export interface HdsFormTextareaFieldSignature { Args: Omit<HdsFormFieldSignature['Args'], 'contextualClass' | 'layout'> & HdsFormTextareaBaseSignature['Args']; Blocks: { default: [ { Label?: HdsFormFieldSignature['Blocks']['default'][0]['Label']; HelperText?: HdsFormFieldSignature['Blocks']['default'][0]['HelperText']; Error?: HdsFormFieldSignature['Blocks']['default'][0]['Error']; CharacterCount?: WithBoundArgs<typeof HdsFormCharacterCountComponent, 'value'>; } ]; }; Element: HdsFormTextareaBaseSignature['Element']; } declare const HdsFormTextareaField: TemplateOnlyComponent<HdsFormTextareaFieldSignature>; export default HdsFormTextareaField;