16 lines
656 B
JavaScript
16 lines
656 B
JavaScript
'use client';
|
|
import * as React from 'react';
|
|
import { useInput_unstable } from './useInput';
|
|
import { renderInput_unstable } from './renderInput';
|
|
import { useInputStyles_unstable } from './useInputStyles.styles';
|
|
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
|
|
/**
|
|
* The Input component allows people to enter and edit text.
|
|
*/ export const Input = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
const state = useInput_unstable(props, ref);
|
|
useInputStyles_unstable(state);
|
|
useCustomStyleHook_unstable('useInputStyles_unstable')(state);
|
|
return renderInput_unstable(state);
|
|
});
|
|
Input.displayName = 'Input';
|