UNPKG

@hashicorp/design-system-components

Version:
25 lines (24 loc) 738 B
/** * Copyright IBM Corp. 2021, 2025 * SPDX-License-Identifier: MPL-2.0 */ import Component from '@glimmer/component'; import type { HdsFormIndicatorSignature } from '../indicator/index'; export declare const ID_PREFIX = "label-"; export interface HdsFormLabelSignature { Args: { contextualClass?: string; controlId?: string; isOptional?: HdsFormIndicatorSignature['Args']['isOptional']; isRequired?: HdsFormIndicatorSignature['Args']['isRequired']; hiddenText?: string; }; Blocks: { default: []; }; Element: HTMLLabelElement; } export default class HdsFormLabel extends Component<HdsFormLabelSignature> { get id(): string | null; get classNames(): string; }