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.

54 lines (48 loc) 1.76 kB
// ** MUI Imports import Grid from '@mui/material/Grid' import Typography from '@mui/material/Typography' // ** Custom Components Imports import CardSnippet from '~/@core/components/card-snippet' // ** Demo Components Imports import TextareaBasic from '~/views/forms/form-elements/textarea/TextareaBasic' import TextareaVariant from '~/views/forms/form-elements/textarea/TextareaVariant' // ** Source code imports import * as source from '~/views/forms/form-elements/textarea/TextareaSourceCode' const Textarea = () => { return ( <Grid container spacing={6} className='match-height'> <Grid item xs={12}> <CardSnippet title='Basic Textarea' code={{ tsx: null, jsx: source.TextareaBasicJSXCode }} > <Typography sx={{ mb: 4 }}> Use <code>minRows</code> prop with <code>TextareaAutosize</code> component to add minimum rows in textarea and <code>maxRows</code> prop to add maximum rows. </Typography> <TextareaBasic /> </CardSnippet> </Grid> <Grid item xs={12}> <CardSnippet title='Variants' code={{ tsx: null, jsx: source.TextareaVariantJSXCode }} > <Typography> Use <code>multiline</code> prop with <code>TextField</code> component to transform the text field into{' '} <code>textarea</code>. Use <code>variant</code> prop with <code>TextField</code> component for different variants of textarea. </Typography> <TextareaVariant /> </CardSnippet> </Grid> </Grid> ) } export default Textarea