#056
Default
Two basic text fields: a full name and an email with type email.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "Default" pattern (@codeatlasdev/ui demo #056, inputs/text-field) in my app.
Call get_demo({ ids: ["#056"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Standard single-line inputs in a signup or profile form.
Keep these library parts, with the props and tokens the demo uses:
- TextField from "@codeatlasdev/ui"
Behaviour to keep:
- `<TextField label="Full name" placeholder="Jane Smith" bind:value={name} />`
- `<TextField label="Email" placeholder="[email protected]" type="email" bind:value={email} />`
- Both values start as `$state('')`
Reduced motion: the demo handles it; keep that branch.
Keyboard: operable; keep the focus order and key handling.
Change only the copy and the data. Use the theme tokens (--ca-*), never raw colours. Library parts
- TextField
@codeatlasdev/ui
How it is built
- `<TextField label="Full name" placeholder="Jane Smith" bind:value={name} />`
- `<TextField label="Email" placeholder="[email protected]" type="email" bind:value={email} />`
- Both values start as `$state('')`
Related
Loading source.