Skip to main content

euv_ui/component/direction/view/
struct.rs

1use super::*;
2
3/// Props for the [`euv_direction`] component.
4///
5/// The provider carries the direction and nothing else: the subtree
6/// inside it reads the direction from the wrapper.
7#[derive(Clone, CustomDebug, Default)]
8pub struct EuvDirectionProps {
9    /// The direction the content is laid out in.
10    pub direction: EuvDirection,
11}
12
13/// Props for the [`euv_direction_provider`] component.
14///
15/// The provider carries the direction and nothing else: the subtree
16/// inside it reads the direction from the wrapper. The direction is
17/// optional, so a caller that leaves it out gets the left-to-right
18/// default instead of having to name it.
19#[derive(Clone, CustomDebug, Default)]
20pub struct EuvDirectionProviderProps {
21    /// The direction the content is laid out in.
22    ///
23    /// `None` leaves the content laid out from left to right.
24    pub direction: Option<EuvDirection>,
25}