Text field

A labelled input that sits in a soft well, with a ring when focused by keyboard.

Options

Size

Code

import "./text-field.css";

export function TextField({ label, ...props }) {
  return (
    <label className="dh-field">
      <span>{label}</span>
      <input {...props} />
    </label>
  );
}