0.46.1 • Published 9 months ago

@clds/text-field-old v0.46.1

Weekly downloads
-
License
-
Repository
github
Last release
9 months ago

@clds/text-field-old


npm version

Documentation of the text field component.

Installation

Install the package using Yarn:

yarn add @clds/text-field

Components

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

0.46.0

10 months ago

0.46.1

9 months ago

0.45.3

10 months ago

0.44.4

10 months ago

0.45.1

10 months ago

0.44.2

10 months ago

0.45.2

10 months ago

0.44.3

10 months ago

0.44.0

10 months ago

0.45.0

10 months ago

0.44.1

10 months ago

0.43.1

11 months ago

0.43.0

11 months ago

0.42.4

11 months ago

0.42.3

12 months ago

0.42.2

1 year ago

0.42.1

1 year ago

0.42.0

1 year ago

0.41.1

1 year ago

0.41.0

1 year ago