UNPKG

@duetds/components

Version:

This package includes Duet Components and related tools.

96 lines (95 loc) 2.34 kB
export declare class DuetTextarea { /** * Reference to host HTML element. */ element: HTMLElement; /** * Indicates the id of a related component’s visually focused element. */ accessibleActiveDescendant: string; /** * Indicates what kind of user input completion suggestions are provided. */ accessibleAutocomplete: string; /** * Use this prop to add an aria-controls attribute. Use the attribute to indicate the id of a component controlled by this component. */ accessibleControls: string; /** * Indicates the id of a component owned by the textarea. */ accessibleOwns: string; /** * Theme of the textarea. Can be one of: default, turva. */ theme: string; /** * Expands the textarea to fill 100% of the container width. */ expand: boolean; /** * Makes the textarea component disabled. This prevents users from being able to interact with the textarea, and conveys its inactive state to assistive technologies. */ disabled: boolean; /** * Adds a unique identifier for the textarea. */ identifier: string; /** * Automatically focus the textarea. */ autofocus: boolean; /** * Set whether the textarea is required or not. */ required: boolean; /** * Label for the textarea. */ label: string; /** * Visually hide the label, but still show it to screen readers. */ labelHidden: boolean; /** * Additional hint text to display. */ helpText: string; /** * Maximum character length for textarea. */ maxLength: number; /** * Minimum character length for textarea. */ minLength: number; /** * Name of the textarea. */ name: string; /** * Hint text to display. */ placeholder: string; /** * Defines a specific role attribute for the input. */ role: string; /** * Indicate whether value should have spelling checked. */ spellCheck: boolean; /** * Value of the textarea. */ value: string; /** * Component lifecycle events. */ componentWillLoad(): void; /** * render() function * Always the last one in the class. */ render(): any; }