Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 110 additions & 42 deletions book-examples/dioxus/src/icons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ pub fn Icons() -> Element {
IconsS2 {}
IconsS3 {}
IconsT1 {}
IconsT2 {}
IconsU1 {}
IconsV1 {}
IconsW1 {}
Expand Down Expand Up @@ -878,6 +879,12 @@ pub fn IconsB1() -> Element {
},
"Banknote Arrow Up",
),
(
rsx! {
BanknoteCheck {}
},
"Banknote Check",
),
(
rsx! {
BanknoteX {}
Expand Down Expand Up @@ -1304,12 +1311,6 @@ pub fn IconsB1() -> Element {
},
"Book Open Check",
),
(
rsx! {
BookOpenText {}
},
"Book Open Text",
),
];
rsx! {
for (icon, name) in icons {
Expand All @@ -1325,6 +1326,12 @@ pub fn IconsB1() -> Element {
#[component]
pub fn IconsB2() -> Element {
let icons = [
(
rsx! {
BookOpenText {}
},
"Book Open Text",
),
(
rsx! {
BookPlus {}
Expand Down Expand Up @@ -2705,6 +2712,18 @@ pub fn IconsC2() -> Element {
},
"Clock Arrow Down",
),
(
rsx! {
ClockArrowLeft {}
},
"Clock Arrow Left",
),
(
rsx! {
ClockArrowRight {}
},
"Clock Arrow Right",
),
(
rsx! {
ClockArrowUp {}
Expand Down Expand Up @@ -2819,18 +2838,6 @@ pub fn IconsC2() -> Element {
},
"Cloud Rain",
),
(
rsx! {
CloudRainWind {}
},
"Cloud Rain Wind",
),
(
rsx! {
CloudSnow {}
},
"Cloud Snow",
),
];
rsx! {
for (icon, name) in icons {
Expand All @@ -2846,6 +2853,18 @@ pub fn IconsC2() -> Element {
#[component]
pub fn IconsC3() -> Element {
let icons = [
(
rsx! {
CloudRainWind {}
},
"Cloud Rain Wind",
),
(
rsx! {
CloudSnow {}
},
"Cloud Snow",
),
(
rsx! {
CloudSun {}
Expand Down Expand Up @@ -7205,6 +7224,12 @@ pub fn IconsP1() -> Element {
},
"Pencil Ruler",
),
(
rsx! {
PencilSparkles {}
},
"Pencil Sparkles",
),
(
rsx! {
Pentagon {}
Expand Down Expand Up @@ -7493,12 +7518,6 @@ pub fn IconsP1() -> Element {
},
"Printer Check",
),
(
rsx! {
PrinterX {}
},
"Printer X",
),
];
rsx! {
for (icon, name) in icons {
Expand All @@ -7514,6 +7533,12 @@ pub fn IconsP1() -> Element {
#[component]
pub fn IconsP2() -> Element {
let icons = [
(
rsx! {
PrinterX {}
},
"Printer X",
),
(
rsx! {
Projector {}
Expand Down Expand Up @@ -8057,6 +8082,12 @@ pub fn IconsS1() -> Element {
},
"Save All",
),
(
rsx! {
SaveCheck {}
},
"Save Check",
),
(
rsx! {
SaveOff {}
Expand Down Expand Up @@ -8603,12 +8634,6 @@ pub fn IconsS1() -> Element {
},
"Sliders Vertical",
),
(
rsx! {
Smartphone {}
},
"Smartphone",
),
];
rsx! {
for (icon, name) in icons {
Expand All @@ -8624,6 +8649,12 @@ pub fn IconsS1() -> Element {
#[component]
pub fn IconsS2() -> Element {
let icons = [
(
rsx! {
Smartphone {}
},
"Smartphone",
),
(
rsx! {
SmartphoneCharging {}
Expand Down Expand Up @@ -9218,12 +9249,6 @@ pub fn IconsS2() -> Element {
},
"Squares Subtract",
),
(
rsx! {
SquaresUnite {}
},
"Squares Unite",
),
];
rsx! {
for (icon, name) in icons {
Expand All @@ -9239,6 +9264,12 @@ pub fn IconsS2() -> Element {
#[component]
pub fn IconsS3() -> Element {
let icons = [
(
rsx! {
SquaresUnite {}
},
"Squares Unite",
),
(
rsx! {
Squircle {}
Expand Down Expand Up @@ -9407,6 +9438,12 @@ pub fn IconsS3() -> Element {
},
"Subscript",
),
(
rsx! {
Summary {}
},
"Summary",
),
(
rsx! {
Sun {}
Expand Down Expand Up @@ -9578,6 +9615,18 @@ pub fn IconsT1() -> Element {
},
"Tag",
),
(
rsx! {
TagPlus {}
},
"Tag Plus",
),
(
rsx! {
TagX {}
},
"Tag X",
),
(
rsx! {
Tags {}
Expand Down Expand Up @@ -10094,12 +10143,6 @@ pub fn IconsT1() -> Element {
},
"Type",
),
(
rsx! {
TypeOutline {}
},
"Type Outline",
),
];
rsx! {
for (icon, name) in icons {
Expand All @@ -10113,6 +10156,25 @@ pub fn IconsT1() -> Element {
}
}
#[component]
pub fn IconsT2() -> Element {
let icons = [(
rsx! {
TypeOutline {}
},
"Type Outline",
)];
rsx! {
for (icon, name) in icons {
div {
key: "{name}",
class: "flex flex-wrap items-center gap-4 text-sm",
{icon}
span { {name} }
}
}
}
}
#[component]
pub fn IconsU1() -> Element {
let icons = [
(
Expand Down Expand Up @@ -10259,6 +10321,12 @@ pub fn IconsU1() -> Element {
},
"User Round",
),
(
rsx! {
UserRoundArrowLeft {}
},
"User Round Arrow Left",
),
(
rsx! {
UserRoundCheck {}
Expand Down
Loading