euv_ui/component/attachment/view/struct.rs
1use super::*;
2
3/// Props for the [`euv_attachment`] component.
4///
5/// The chip carries the state of the file, its size and the direction the
6/// parts are laid out in. The media, the text and the actions are passed
7/// as children.
8#[derive(Clone, CustomDebug, Default)]
9pub struct EuvAttachmentProps {
10 /// How far along the file is.
11 pub state: EuvAttachmentState,
12 /// The size of the chip.
13 pub size: EuvAttachmentSize,
14 /// The direction the parts are laid out in.
15 pub orientation: EuvAttachmentOrientation,
16}
17
18/// Props for the [`euv_attachment_media`] component.
19///
20/// The media carries the kind of media and the size of the thumbnail.
21#[derive(Clone, CustomDebug, Default)]
22pub struct EuvAttachmentMediaProps {
23 /// The kind of media the thumbnail holds.
24 pub variant: EuvAttachmentMediaVariant,
25 /// The size of the thumbnail.
26 pub size: EuvAttachmentSize,
27}
28
29/// Props for the [`euv_attachment_content`] component.
30///
31/// The content holds the text of the chip and takes no settings.
32#[derive(Clone, CustomDebug, Default)]
33pub struct EuvAttachmentContentProps {}
34
35/// Props for the [`euv_attachment_title`] component.
36///
37/// The title holds the name of the file and takes no settings.
38#[derive(Clone, CustomDebug, Default)]
39pub struct EuvAttachmentTitleProps {}
40
41/// Props for the [`euv_attachment_description`] component.
42///
43/// The description holds the line under the name and takes no settings.
44#[derive(Clone, CustomDebug, Default)]
45pub struct EuvAttachmentDescriptionProps {}
46
47/// Props for the [`euv_attachment_actions`] component.
48///
49/// The actions row takes no settings of its own.
50#[derive(Clone, CustomDebug, Default)]
51pub struct EuvAttachmentActionsProps {}
52
53/// Props for the [`euv_attachment_action`] component.
54///
55/// The action is a plain button and takes no settings of its own.
56#[derive(Clone, CustomDebug, Default)]
57pub struct EuvAttachmentActionProps {}
58
59/// Props for the [`euv_attachment_trigger`] component.
60///
61/// The trigger covers the chip and takes no settings of its own.
62#[derive(Clone, CustomDebug, Default)]
63pub struct EuvAttachmentTriggerProps {}
64
65/// Props for the [`euv_attachment_group`] component.
66///
67/// The group takes no settings of its own.
68#[derive(Clone, CustomDebug, Default)]
69pub struct EuvAttachmentGroupProps {}