packages/react-components/react-textarea/library/etc/react-textarea.api.md
Do not edit this file. It is a report generated by API Extractor.
import type { ComponentProps } from '@fluentui/react-utilities';
import type { ComponentState } from '@fluentui/react-utilities';
import type { ForwardRefComponent } from '@fluentui/react-utilities';
import type { JSXElement } from '@fluentui/react-utilities';
import * as React_2 from 'react';
import type { Slot } from '@fluentui/react-utilities';
import { SlotClassNames } from '@fluentui/react-utilities';
// @public
export const renderTextarea_unstable: (state: TextareaState) => JSXElement;
// @public
export const Textarea: ForwardRefComponent<TextareaProps>;
// @public (undocumented)
export const textareaClassNames: SlotClassNames<TextareaSlots>;
// @public
export type TextareaOnChangeData = {
value: string;
};
// @public
export type TextareaProps = Omit<ComponentProps<Partial<TextareaSlots>, 'textarea'>, 'defaultValue' | 'onChange' | 'size' | 'value'> & {
appearance?: 'outline' | 'filled-darker' | 'filled-lighter' | 'filled-darker-shadow' | 'filled-lighter-shadow';
defaultValue?: string;
onChange?: (ev: React_2.ChangeEvent<HTMLTextAreaElement>, data: TextareaOnChangeData) => void;
resize?: 'none' | 'horizontal' | 'vertical' | 'both';
size?: 'small' | 'medium' | 'large';
value?: string;
};
// @public (undocumented)
export type TextareaSlots = {
root: NonNullable<Slot<'span'>>;
textarea: NonNullable<Slot<'textarea'>>;
};
// @public
export type TextareaState = ComponentState<TextareaSlots> & Required<Pick<TextareaProps, 'appearance' | 'resize' | 'size'>>;
// @public
export const useTextarea_unstable: (props: TextareaProps, ref: React_2.Ref<HTMLTextAreaElement>) => TextareaState;
// @public
export const useTextareaStyles_unstable: (state: TextareaState) => TextareaState;
// (No @packageDocumentation comment for this package)