euv-ui 0.37.2

Reusable UI component library for the euv framework, providing buttons, cards, modals, inputs, and more.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::*;

/// Props for the `euv_aspect_ratio` component.
///
/// The ratio is the width divided by the height, so `16.0 / 9.0` is the
/// usual widescreen figure.
#[derive(Clone, CustomDebug, Data, Default, New)]
pub struct EuvAspectRatioProps {
    /// The width-to-height ratio of the box.
    #[get(type(copy))]
    pub ratio: f32,
}