@clds/text-field-old v0.67.1
@clds/text-field-old
Documentation of the text field component.
Installation
Install the package using Yarn:
yarn add @clds/text-fieldComponents
TextField
Controlled text field component - does not handle any other responsibilities beside displaying and controlling the field itself.
Usage
import React, { FC, useRef, useState } from 'react';
import TextField from '@clds/text-field-old';
const ControlledExample: FC = () => {
const [fieldValue, setFieldValue] = useState(defaultValue);
return (
<TextField
onChange={setFieldValue}
placeholder="Enter text here"
type="text"
value={fieldValue}
/>
);
};
const UncontrolledExample: FC = () => {
const textFieldRef = useRef(null);
return <TextField defaultValue="Test" inputRef={textFieldRef} type="text" />;
};Versioning
This library follows Semantic Versioning.
License
See LICENSE
9 months ago
9 months ago
6 months ago
8 months ago
6 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
10 months ago
9 months ago
10 months ago
11 months ago
11 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
1 year ago
1 year ago
6 months ago
6 months ago
7 months ago
6 months ago
7 months ago
9 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
12 months ago
10 months ago
1 year ago
1 year ago
1 year ago
6 months ago
6 months ago
8 months ago
1 year ago
1 year ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago