state
placeholder
Styles an input or textarea's ::placeholder text.
import { placeholder } from "@sdxc/u/state";Quick reference
Every documented call, beside the CSS it emits.
| Call | CSS |
|---|---|
u.placeholder(u.fg("neutral.muted")) | css({ "&::placeholder": { color: "..." } }) |
Using a custom value
Every scale argument also takes a raw CSS value, which passes through untouched.
u.placeholder(u.fg("neutral.muted"))Responsive design
Wrap the call in a container query to scope it to one width.
u.at("md", u.placeholder(u.fg("neutral.muted")))Signature
u.placeholder(input: UtilityInput<Node>)