opacity
Utilities for controlling whole-subtree alpha compositing opacity from 0 to 100.
Interactive Iced
Rust · WASM
Examples
Section titled “Examples”use iced::widget::button;use iss::{tw, TwExt};
let btn = button(label).tw(tw!("px-4 py-2 bg-blue-600 rounded-lg disabled:opacity-50"));use iss::typed::*;
let style = IssStyle::new().disabled(|s| s.opacity(50));Class Reference
Section titled “Class Reference”| Tailwind Class | CSS Property / Effect | iss::typed Builder |
|---|---|---|
opacity-0 .. opacity-100 |
opacity: 0 .. 1 (dynamic integer %); |
.opacity(50) |
opacity-[0.85] |
opacity: 0.85; |
.opacity_f32(0.85) |
Behavior Notes
Section titled “Behavior Notes”- Composites the entire subtree at the target opacity so overlapping children do not double-blend.