UNPKG

@hashicorp/design-system-components

Version:
39 lines (38 loc) 1.15 kB
/** * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ import Component from '@glimmer/component'; import { HdsFormTextInputTypeValues } from './types.ts'; import type { HdsFormTextInputTypes } from './types.ts'; export declare const DEFAULT_TYPE = HdsFormTextInputTypeValues.Text; export declare const TYPES: HdsFormTextInputTypes[]; export interface HdsFormTextInputBaseSignature { Args: { hasVisibilityToggle?: boolean; isInvalid?: boolean; isLoading?: boolean; type?: HdsFormTextInputTypes; value?: string; width?: string; id?: string; ariaDescribedBy?: string; }; Element: HTMLInputElement; } export default class HdsFormTextInputBase extends Component<HdsFormTextInputBaseSignature> { /** * Sets the type of input * * @param type * @type {string} * @default 'text' */ get type(): HdsFormTextInputTypes; /** * Get the class names to apply to the component. * @method classNames * @return {string} The "class" attribute to apply to the component. */ get classNames(): string; }