@hashicorp/design-system-components
Version:
Helios Design System Components
28 lines (27 loc) • 1.26 kB
TypeScript
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import type { HdsFormFieldSignature } from '../field';
import type { HdsFormTextareaBaseSignature } from './base';
import type { ComponentLike, WithBoundArgs } from '@glint/template';
import type { HdsFormErrorSignature } from '../error';
import type { HdsFormHelperTextSignature } from '../helper-text';
import type { HdsFormLabelSignature } from '../label';
import type HdsFormCharacterCountComponent from '../character-count';
export interface HdsFormTextareaFieldSignature {
Args: Omit<HdsFormFieldSignature['Args'], 'contextualClass' | 'layout'> & HdsFormTextareaBaseSignature['Args'];
Blocks: {
default: [
{
Label?: ComponentLike<HdsFormLabelSignature>;
HelperText?: ComponentLike<HdsFormHelperTextSignature>;
Error?: ComponentLike<HdsFormErrorSignature>;
CharacterCount?: WithBoundArgs<typeof HdsFormCharacterCountComponent, 'value'>;
}
];
};
Element: HdsFormFieldSignature['Element'];
}
declare const HdsFormTextareaField: import("@ember/component/template-only").TemplateOnlyComponent<HdsFormTextareaFieldSignature>;
export default HdsFormTextareaField;