#055
States
Six text areas showing description, error, required, read-only, disabled and fixed-size states.
Hand this to your AI. It names the exact library parts, timings and accessibility promises of this demo.
Build the "States" pattern (@codeatlasdev/ui demo #055, inputs/text-area) in my app.
Call get_demo({ ids: ["#055"] }) first and keep its structure. It needs @codeatlasdev/[email protected].
Use: Reference for every validation and availability state of a multi-line field.
Keep these library parts, with the props and tokens the demo uses:
- TextArea from "@codeatlasdev/ui"
Behaviour to keep:
- Feedback has `description="Max 500 characters."`
- Bio has `error="Bio must be at least 20 characters."` and `description="Tell us about yourself."`
- Summary has `required`
- Read-only content uses `readonly`; Disabled content uses `disabled`, both `value="Cannot be edited."`
- Fixed uses `resize="none"` and `rows={3}`
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
- TextArea
@codeatlasdev/ui
How it is built
- Feedback has `description="Max 500 characters."`
- Bio has `error="Bio must be at least 20 characters."` and `description="Tell us about yourself."`
- Summary has `required`
- Read-only content uses `readonly`; Disabled content uses `disabled`, both `value="Cannot be edited."`
- Fixed uses `resize="none"` and `rows={3}`
Related
Loading source.