@hashicorp/design-system-components
Version:
Helios Design System Components
27 lines (26 loc) • 805 B
TypeScript
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import Component from '@glimmer/component';
import type { HdsFormIndicatorSignature } from '../indicator/index.ts';
export interface HdsFormLegendSignature {
Args: {
contextualClass?: string;
isOptional?: HdsFormIndicatorSignature['Args']['isOptional'];
isRequired?: HdsFormIndicatorSignature['Args']['isRequired'];
id?: string;
};
Blocks: {
default: [];
};
Element: HTMLLegendElement;
}
export default class HdsFormLegend extends Component<HdsFormLegendSignature> {
/**
* Get the class names to apply to the component.
* @method classNames
* @return {string} The "class" attribute to apply to the component.
*/
get classNames(): string;
}