Skip to content

field-sizing

Utilities for controlling whether form inputs use fixed box dimensions or grow to fit typed content.

InteractivityTailwind v4 Spec
ISS preview
Iced + ISS preview demonstrating field-sizing
ISS preview for field-sizing
use iced::widget::text_input;
use iss::{tw, TwExt};
let tag_input = text_input("Tag", &val).tw(tw!("field-sizing-content min-w-16 px-2 py-1 bg-zinc-900 rounded-md"));
Tailwind Class CSS Property / Effect iss::typed Builder
field-sizing-fixed field-sizing: fixed; .field_sizing_fixed()
field-sizing-content field-sizing: content; .field_sizing_content()

appearance · resize · width