Input
A labeled text field with accessible helper text.
<div class="field"><label for="example-email">Email address</label><input id="example-email" name="email" type="email" autocomplete="email" placeholder="you@example.com" aria-describedby="email-hint"><small id="email-hint">Your email stays in this preview.</small></div>.field small { color: var(--muted-foreground); font-size: 12px; }Installation
Run the source CLI from a Blocks UI checkout. This package is not published to npm.
node packages/cli/index.js add inputOr copy the source files above. Include tokens.css and base.css once in your project.
Usage
Use semantic HTML and the shared foundation styles. Interactive primitives also export a decorate function.
<div class="field"><label for="example-email">Email address</label><input id="example-email" name="email" type="email" autocomplete="email" placeholder="you@example.com" aria-describedby="email-hint"><small id="email-hint">Your email stays in this preview.</small></div>Variants
Choose a variant in the live preview. Add its class to the authored block.
defaultAccessibility & behavior
Semantic HTML, visible focus states, shared contrast-aware tokens, and responsive styles provide an accessible foundation. Preserve labels and heading hierarchy when customizing.
Multiple instances are supported. Layouts adapt to smaller viewports. No npm dependencies are required at runtime.
AEM usage
Primitives belong inside authored blocks, not as nested EDS blocks. Copy their styles and markup into the parent block implementation.
Standalone verified. EDS markup compatible. Live AEM integration has not been verified.