UNPKG

@hashicorp/design-system-components

Version:
30 lines (29 loc) 904 B
/** * Copyright IBM Corp. 2021, 2025 * SPDX-License-Identifier: MPL-2.0 */ import Component from '@glimmer/component'; import HdsFormErrorMessage from './message'; export declare const ID_PREFIX = "error-"; export interface HdsFormErrorSignature { Args: { contextualClass?: string; controlId?: string; onInsert?: (element: HTMLElement, ...args: any[]) => void; onRemove?: (element: HTMLElement, ...args: any[]) => void; }; Blocks: { default: [ { Message?: typeof HdsFormErrorMessage; } ]; }; Element: HTMLDivElement; } export default class HdsFormError extends Component<HdsFormErrorSignature> { get id(): string | null; get onInsert(): (element: HTMLElement, ...args: any[]) => void; get onRemove(): (element: HTMLElement, ...args: any[]) => void; get classNames(): string; }