euv_ui/component/feature_grid/view/struct.rs
1use super::*;
2
3/// One card of the [`euv_feature_grid`] component.
4#[derive(Clone, Copy, CustomDebug, Data, Default, New)]
5pub struct EuvFeature {
6 /// The feature icon (emoji, skipped when empty).
7 #[get(type(copy))]
8 pub icon: &'static str,
9 /// The feature title.
10 #[get(type(copy))]
11 pub title: &'static str,
12 /// The feature details.
13 #[get(type(copy))]
14 pub details: &'static str,
15}
16
17/// Props for the [`euv_feature_grid`] component.
18#[derive(Clone, Copy, CustomDebug, Data, Default, New)]
19pub struct EuvFeatureGridProps {
20 /// The feature cards (skipped when empty).
21 #[get(type(copy))]
22 pub features: &'static [EuvFeature],
23}