import type { Story } from "@ladle/react"; import { useState } from "react"; import { Field as CapsField } from "../src/components/field.js"; import { Input } from "../src/components/input.js"; import { Button } from "../src/components/button.js"; import "./status.css"; import "./input.css"; export const Field: Story = () => { const [invalid, setInvalid] = useState(false); return (
Fields / animated errors
Errors open and close smoothly, without reserving an empty line.
); };