Skip to content

content

Utilities for setting generated text inside before: and after: pseudo-elements.

ISS preview
Iced + ISS preview demonstrating content
ISS preview for content
use iced::widget::text;
use iss::{tw, TwExt};
let required = text("Email").tw(tw!("text-sm text-zinc-100 after:content-['*'] after:ml-1 after:text-rose-400"));
Tailwind Class CSS Property / Effect iss::typed Builder
content-none content: none; .content_none()
content-[''] content: ""; .content("")
content-['*'] content: "*"; .content("*")
content-['NEW'] content: "NEW"; .content("NEW")
  • before: and after: default to content: "" when styled without an explicit content-[...] class.

list-style-type · position