Skip to content

tab-size

Utilities for controlling the visual width of literal tab characters in preformatted text.

ISS preview
Iced + ISS preview demonstrating tab-size
ISS preview for tab-size
use iced::widget::text;
use iss::{tw, TwExt};
let snippet = text("fn main() {\n\tprintln!(\"hi\");\n}").tw(tw!("font-mono whitespace-pre tab-4 text-xs"));
Tailwind Class CSS Property / Effect iss::typed Builder
tab-2 / tab-4 / tab-8 tab-size: 2 / 4 / 8; .tab_size(4)
tab-[6] tab-size: 6; .tab(6)

white-space · font-family