Input
Single-line text input, grouped container, and prefix/suffix addons.
https://
Usage
import { input, inputAddon, inputGroup } from "coatx/input";
export const DomainInput = () => (
<div {...inputGroup()}>
<span {...inputAddon()}>https://</span>
<input type="text" placeholder="example.com" {...input({ size: "sm" })} />
</div>
);
Exports (coatx/input)
| Export | Description |
|---|---|
input(options?) |
Text input recipe |
inputGroup(options?) |
Flex wrapper grouping an input with addons |
inputAddon(options?) |
Muted prefix or suffix addon slot |
inputStyles |
Compiled StyleX style map |
Options
| Option | Type | Default |
|---|---|---|
size |
"default", "sm", "lg" |
"default" |
invalid |
boolean |
false |
disabled |
boolean |
false |