Skip to content

border-width

Utilities for controlling uniform, per-side, logical border thicknesses, and child dividers (divide-*).

ISS preview
Iced + ISS preview demonstrating border-width
ISS preview for border-width
use iced::widget::container;
use iss::{tw, TwExt};
let callout = container(body).tw(tw!("p-4 bg-zinc-900 border border-zinc-800 border-s-4 border-s-blue-500 rounded-lg"));
Tailwind Class CSS Property / Effect iss::typed Builder
border / border-0 / border-2 / border-4 / border-8 border-width: 1px / 0 / 2px / 4px / 8px; .border() / .border_2()
border-x / border-y / border-t / r / b / l Per-axis and per-side widths; .border_b() / .border_l_2()
border-s / border-e / border-s-4 Logical inline-start/end borders; .border_s_4()
divide-x / divide-y / divide-y-2 1px / 2px dividers between children; .divide_y() / .divide_x()
border-[1.5px] border-width: 1.5px; .border_w(1.5)
  • Logical border-s-* and border-e-* flip automatically inside dir_rtl(...).

border-color · border-style · border-radius · outline-width