![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@rmwc/textfield
Advanced tools
Text fields allow users to input, edit, and select text.
import { TextField } from '@rmwc/textfield';
{/* Standard text field. */}
<TextField label="standard..." helpText="Optional help text."/>
{/* Leading and trailing icons can be used, they look the best with the box prop. You can pass anything the Icon component accepts. */}
<TextField icon="search" trailingIcon="close" label="icon..." />
{/* If you need full control over the icon, you can pass the icon as options with your own props. Dont forget the TabIndex to make it clickable*/}
<TextField
label="trailingIcon..."
trailingIcon={{
icon: 'close',
onClick: () => console.log('Clear')
}}
/>
{/* An outlined TextField */}
<TextField outlined label="outlined..." />
{/* A fullWidth input. */}
<TextField fullwidth placeholder="fullWidth..."/>
{/*
You can make the TextField a textarea. Make sure to include `outlined` for proper styling
You can optionally make help text always visible by passing an object as props with persistent set to true.
*/}
<TextField textarea outlined fullwidth label="textarea..." rows="8"
maxLength={20}
characterCount
helpText={{
persistent: true,
validationMsg: true,
children: 'The field is required'
}}
/>
{/* Disabled text field. */}
<TextField disabled label="disabled..." />
{/* Invalid text fields. */}
<TextField invalid label="Invalid..." value="#@!$" onChange={() => {}}/>
<TextField label="Validate Pattern" pattern="[A-Za-z]{3}"/>
{/* No Label. */}
<TextField placeholder="No label"/>
A preview of how material-components-web
handles styling input types for your browser.
import { TextField, TextFieldIcon, TextFieldHelperText } from '@rmwc/textfield';
<TextField label="text" type="text"/>
<TextField label="color" type="color" style={{width: '6rem'}}/>
<TextField label="date" type="date"/>
<TextField label="datetime-local" type="datetime-local"/>
<TextField label="month" type="month"/>
<TextField label="range" type="range"/>
<TextField label="time" type="time"/>
<TextField label="week" type="week"/>
import { Docs } from '@rmwc/base/utils/document-component';
import * as docs from './docgen.json';
<Docs src={docs} components={['TextField', 'TextFieldIcon', 'TextFieldHelperText']} />
5.2.2 (2019-04-02)
FAQs
RMWC TextField component
The npm package @rmwc/textfield receives a total of 3,798 weekly downloads. As such, @rmwc/textfield popularity was classified as popular.
We found that @rmwc/textfield demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.