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

Examples
Section titled “Examples”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"));use iss::typed::*;
let style = IssStyle::new().text_sm().after(|s| s.content("*").ml(1).text_color(palette::ROSE_400));Class Reference
Section titled “Class Reference”| 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") |
Behavior Notes
Section titled “Behavior Notes”before:andafter:default tocontent: ""when styled without an explicitcontent-[...]class.