Field Sizing
Set how form fields size themselves based on content.
Limited availability
This feature does not work in some of the most widely-used browsers.
Chrome
Edge
Firefox
Safari
Usage
Fixed
Maintain a fixed size for form fields.
<div class="d-f fd-c"> <label class="mb-2 c-slate fw-600">Write a message:</label> <textarea class="max-h-50 max-w-100 bc-silver-4 bw-1 fs-f r-none f:oc-silver-1 f:os-s f:ow-2" placeholder="Hello, my name is..."></textarea></div>Content
Allow form fields to size themselves based on content.
<div class="d-f fd-c"> <label class="mb-2 c-slate fw-600">Write a message:</label> <textarea class="max-h-50 max-w-100 bc-silver-4 bw-1 fs-c r-none f:oc-silver-1 f:os-s f:ow-2" placeholder="Hello, my name is..."></textarea></div>Responsiveness
Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.
Target viewport sizes with breakpoint prefixes.
sm:fs-*Small≥640px
md:fs-*Medium≥768px
lg:fs-*Large≥1024px
xxl:fs-*Extra Large≥1536px
Hover State
Apply styles conditionally on hover using the h: prefix.
Add the h: prefix to apply styles only when the user hovers over the element.
Syntax:
h:fs-*