UNPKG

react-garden

Version:

React + TypeScript + ThreeJS app using Material UI on NextJS, Apollo Client, GraphQL + WordPress REST APIs, for ThreeD web development.. a part of the threed.ai code family.

17 lines (12 loc) 404 B
// ** React Imports import { forwardRef } from 'react' // ** MUI Imports import TextField from '@mui/material/TextField' const PickersComponent = forwardRef(({ ...props }, ref) => { // ** Props const { label, readOnly } = props return ( <TextField inputRef={ref} {...props} label={label || ''} {...(readOnly && { inputProps: { readOnly: true } })} /> ) }) export default PickersComponent