Function freya_components::OverflowedContent
source · pub fn OverflowedContent(__props: OverflowedContentProps) -> Element
Expand description
Animate the content of a container when the content overflows.
This is primarily targeted to text that can’t be fully shown in small layouts.
§Example
fn app() -> Element {
rsx!(
Button {
OverflowedContent {
width: "100",
rect {
direction: "horizontal",
cross_align: "center",
label {
"Freya is a cross-platform GUI library for Rust"
}
}
}
}
)
}
§Props
For details, see the props struct definition.