width
Utilities for setting the width of an element using spacing units, fractions, container stops, or arbitrary values.
ISS preview

Examples
Section titled “Examples”use iced::widget::container;use iss::{tw, TwExt};
let sidebar = container(nav).tw(tw!("w-64 shrink-0 bg-zinc-900 border-r border-zinc-800"));use iss::typed::*;
let style = IssStyle::new().w(64).shrink_0().bg(palette::ZINC_900);Class Reference
Section titled “Class Reference”| Tailwind Class | CSS Property / Effect | iss::typed Builder |
|---|---|---|
w-<n> / size-<n> |
width: calc(var(--spacing) * <n>); |
.w(64) / .size(12) |
w-1/2 / w-2/3 / w-full |
width: 50% / 66.667% / 100%; |
.w_frac(1, 2) / .w_full() |
w-auto / w-min / w-max / w-fit |
width: auto / min-content / max-content / fit-content; |
.w_auto() / .w_fit() |
w-3xs .. w-7xl |
Container width stops (16rem .. 80rem); |
.w_md() |
w-screen / w-dvw / w-[280px] |
Viewport units and arbitrary pixels; |
.w_px(280) |
w-(--width-sidebar) |
width: var(--width-sidebar); |
.w_var("--width-sidebar") |
Related Utilities
Section titled “Related Utilities”min-width · max-width · height · inline-size