16 lines
718 B
JavaScript
16 lines
718 B
JavaScript
'use client';
|
|
import * as React from 'react';
|
|
import { renderTextarea_unstable } from './renderTextarea';
|
|
import { useTextarea_unstable } from './useTextarea';
|
|
import { useTextareaStyles_unstable } from './useTextareaStyles.styles';
|
|
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
|
|
/**
|
|
* The Textarea component allows the user to enter and edit text in multiple lines.
|
|
*/ export const Textarea = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
const state = useTextarea_unstable(props, ref);
|
|
useTextareaStyles_unstable(state);
|
|
useCustomStyleHook_unstable('useTextareaStyles_unstable')(state);
|
|
return renderTextarea_unstable(state);
|
|
});
|
|
Textarea.displayName = 'Textarea';
|