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
122 changes: 84 additions & 38 deletions book-examples/dioxus/src/icons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1833,6 +1833,12 @@ pub fn IconsC1() -> Element {
},
"Can",
),
(
rsx! {
CanSoda {}
},
"Can Soda",
),
(
rsx! {
Candy {}
Expand Down Expand Up @@ -2247,12 +2253,6 @@ pub fn IconsC1() -> Element {
},
"Chevrons Right",
),
(
rsx! {
ChevronsRightLeft {}
},
"Chevrons Right Left",
),
];
rsx! {
for (icon, name) in icons {
Expand All @@ -2268,6 +2268,12 @@ pub fn IconsC1() -> Element {
#[component]
pub fn IconsC2() -> Element {
let icons = [
(
rsx! {
ChevronsRightLeft {}
},
"Chevrons Right Left",
),
(
rsx! {
ChevronsUp {}
Expand Down Expand Up @@ -2862,12 +2868,6 @@ pub fn IconsC2() -> Element {
},
"Cloud Lightning",
),
(
rsx! {
CloudMoon {}
},
"Cloud Moon",
),
];
rsx! {
for (icon, name) in icons {
Expand All @@ -2883,6 +2883,12 @@ pub fn IconsC2() -> Element {
#[component]
pub fn IconsC3() -> Element {
let icons = [
(
rsx! {
CloudMoon {}
},
"Cloud Moon",
),
(
rsx! {
CloudMoonRain {}
Expand Down Expand Up @@ -3225,6 +3231,12 @@ pub fn IconsC3() -> Element {
},
"Credit Card Plus",
),
(
rsx! {
CreditCardReader {}
},
"Credit Card Reader",
),
(
rsx! {
CreditCardX {}
Expand Down Expand Up @@ -3552,6 +3564,12 @@ pub fn IconsD1() -> Element {
},
"Door Open",
),
(
rsx! {
DoorStairwell {}
},
"Door Stairwell",
),
(
rsx! {
Dot {}
Expand Down Expand Up @@ -3711,6 +3729,12 @@ pub fn IconsE1() -> Element {
},
"Ellipsis Vertical",
),
(
rsx! {
Engine {}
},
"Engine",
),
(
rsx! {
Equal {}
Expand Down Expand Up @@ -4734,6 +4758,18 @@ pub fn IconsG1() -> Element {
},
"Georgian Lari",
),
(
rsx! {
Germ {}
},
"Germ",
),
(
rsx! {
GermOff {}
},
"Germ Off",
),
(
rsx! {
Ghost {}
Expand Down Expand Up @@ -9375,6 +9411,12 @@ pub fn IconsS2() -> Element {
},
"Square Equal",
),
(
rsx! {
SquareExclamationPoint {}
},
"Square Exclamation Point",
),
(
rsx! {
SquareFunction {}
Expand Down Expand Up @@ -9531,12 +9573,6 @@ pub fn IconsS2() -> Element {
},
"Square Square",
),
(
rsx! {
SquareStack {}
},
"Square Stack",
),
];
rsx! {
for (icon, name) in icons {
Expand All @@ -9552,6 +9588,12 @@ pub fn IconsS2() -> Element {
#[component]
pub fn IconsS3() -> Element {
let icons = [
(
rsx! {
SquareStack {}
},
"Square Stack",
),
(
rsx! {
SquareStar {}
Expand Down Expand Up @@ -10365,12 +10407,6 @@ pub fn IconsT1() -> Element {
},
"Trash",
),
(
rsx! {
Trash2 {}
},
"Trash 2",
),
(
rsx! {
TreeDeciduous {}
Expand Down Expand Up @@ -10491,6 +10527,12 @@ pub fn IconsT1() -> Element {
},
"Tv Minimal Play",
),
(
rsx! {
Type {}
},
"Type",
),
];
rsx! {
for (icon, name) in icons {
Expand All @@ -10505,20 +10547,12 @@ pub fn IconsT1() -> Element {
}
#[component]
pub fn IconsT2() -> Element {
let icons = [
(
rsx! {
Type {}
},
"Type",
),
(
rsx! {
TypeOutline {}
},
"Type Outline",
),
];
let icons = [(
rsx! {
TypeOutline {}
},
"Type Outline",
)];
rsx! {
for (icon, name) in icons {
div {
Expand Down Expand Up @@ -10896,6 +10930,18 @@ pub fn IconsV1() -> Element {
},
"View",
),
(
rsx! {
Virus {}
},
"Virus",
),
(
rsx! {
VirusOff {}
},
"Virus Off",
),
(
rsx! {
Voicemail {}
Expand Down
22 changes: 14 additions & 8 deletions book-examples/leptos/src/icons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ pub fn IconsC1() -> impl IntoView {
(view! { <Camera /> }.into_any(), "Camera"),
(view! { <CameraOff /> }.into_any(), "Camera Off"),
(view! { <Can /> }.into_any(), "Can"),
(view! { <CanSoda /> }.into_any(), "Can Soda"),
(view! { <Candy /> }.into_any(), "Candy"),
(view! { <CandyCane /> }.into_any(), "Candy Cane"),
(view! { <CandyOff /> }.into_any(), "Candy Off"),
Expand Down Expand Up @@ -523,7 +524,6 @@ pub fn IconsC1() -> impl IntoView {
"Chevrons Left Right Ellipsis",
),
(view! { <ChevronsRight /> }.into_any(), "Chevrons Right"),
(view! { <ChevronsRightLeft /> }.into_any(), "Chevrons Right Left"),
]
key=|icon| icon.1
children=move |(icon, name)| {
Expand All @@ -541,6 +541,7 @@ pub fn IconsC2() -> impl IntoView {
view! {
<For
each=move || [
(view! { <ChevronsRightLeft /> }.into_any(), "Chevrons Right Left"),
(view! { <ChevronsUp /> }.into_any(), "Chevrons Up"),
(view! { <ChevronsUpDown /> }.into_any(), "Chevrons Up Down"),
(view! { <Church /> }.into_any(), "Church"),
Expand Down Expand Up @@ -640,7 +641,6 @@ pub fn IconsC2() -> impl IntoView {
(view! { <CloudFog /> }.into_any(), "Cloud Fog"),
(view! { <CloudHail /> }.into_any(), "Cloud Hail"),
(view! { <CloudLightning /> }.into_any(), "Cloud Lightning"),
(view! { <CloudMoon /> }.into_any(), "Cloud Moon"),
]
key=|icon| icon.1
children=move |(icon, name)| {
Expand All @@ -658,6 +658,7 @@ pub fn IconsC3() -> impl IntoView {
view! {
<For
each=move || [
(view! { <CloudMoon /> }.into_any(), "Cloud Moon"),
(view! { <CloudMoonRain /> }.into_any(), "Cloud Moon Rain"),
(view! { <CloudOff /> }.into_any(), "Cloud Off"),
(view! { <CloudRain /> }.into_any(), "Cloud Rain"),
Expand Down Expand Up @@ -715,6 +716,7 @@ pub fn IconsC3() -> impl IntoView {
(view! { <CreditCardCheck /> }.into_any(), "Credit Card Check"),
(view! { <CreditCardMinus /> }.into_any(), "Credit Card Minus"),
(view! { <CreditCardPlus /> }.into_any(), "Credit Card Plus"),
(view! { <CreditCardReader /> }.into_any(), "Credit Card Reader"),
(view! { <CreditCardX /> }.into_any(), "Credit Card X"),
(view! { <Croissant /> }.into_any(), "Croissant"),
(view! { <Crop /> }.into_any(), "Crop"),
Expand Down Expand Up @@ -784,6 +786,7 @@ pub fn IconsD1() -> impl IntoView {
(view! { <DoorClosed /> }.into_any(), "Door Closed"),
(view! { <DoorClosedLocked /> }.into_any(), "Door Closed Locked"),
(view! { <DoorOpen /> }.into_any(), "Door Open"),
(view! { <DoorStairwell /> }.into_any(), "Door Stairwell"),
(view! { <Dot /> }.into_any(), "Dot"),
(view! { <Download /> }.into_any(), "Download"),
(view! { <DraftingCompass /> }.into_any(), "Drafting Compass"),
Expand Down Expand Up @@ -825,6 +828,7 @@ pub fn IconsE1() -> impl IntoView {
(view! { <Ellipse /> }.into_any(), "Ellipse"),
(view! { <Ellipsis /> }.into_any(), "Ellipsis"),
(view! { <EllipsisVertical /> }.into_any(), "Ellipsis Vertical"),
(view! { <Engine /> }.into_any(), "Engine"),
(view! { <Equal /> }.into_any(), "Equal"),
(view! { <EqualApproximately /> }.into_any(), "Equal Approximately"),
(view! { <EqualNot /> }.into_any(), "Equal Not"),
Expand Down Expand Up @@ -1042,6 +1046,8 @@ pub fn IconsG1() -> impl IntoView {
(view! { <Gavel /> }.into_any(), "Gavel"),
(view! { <Gem /> }.into_any(), "Gem"),
(view! { <GeorgianLari /> }.into_any(), "Georgian Lari"),
(view! { <Germ /> }.into_any(), "Germ"),
(view! { <GermOff /> }.into_any(), "Germ Off"),
(view! { <Ghost /> }.into_any(), "Ghost"),
(view! { <Gift /> }.into_any(), "Gift"),
(view! { <GitBranch /> }.into_any(), "Git Branch"),
Expand Down Expand Up @@ -2048,6 +2054,7 @@ pub fn IconsS2() -> impl IntoView {
(view! { <SquareDivide /> }.into_any(), "Square Divide"),
(view! { <SquareDot /> }.into_any(), "Square Dot"),
(view! { <SquareEqual /> }.into_any(), "Square Equal"),
(view! { <SquareExclamationPoint /> }.into_any(), "Square Exclamation Point"),
(view! { <SquareFunction /> }.into_any(), "Square Function"),
(view! { <SquareKanban /> }.into_any(), "Square Kanban"),
(view! { <SquareLibrary /> }.into_any(), "Square Library"),
Expand All @@ -2074,7 +2081,6 @@ pub fn IconsS2() -> impl IntoView {
(view! { <SquareSplitHorizontal /> }.into_any(), "Square Split Horizontal"),
(view! { <SquareSplitVertical /> }.into_any(), "Square Split Vertical"),
(view! { <SquareSquare /> }.into_any(), "Square Square"),
(view! { <SquareStack /> }.into_any(), "Square Stack"),
]
key=|icon| icon.1
children=move |(icon, name)| {
Expand All @@ -2092,6 +2098,7 @@ pub fn IconsS3() -> impl IntoView {
view! {
<For
each=move || [
(view! { <SquareStack /> }.into_any(), "Square Stack"),
(view! { <SquareStar /> }.into_any(), "Square Star"),
(view! { <SquareStop /> }.into_any(), "Square Stop"),
(view! { <SquareTerminal /> }.into_any(), "Square Terminal"),
Expand Down Expand Up @@ -2242,7 +2249,6 @@ pub fn IconsT1() -> impl IntoView {
(view! { <TramFront /> }.into_any(), "Tram Front"),
(view! { <Transgender /> }.into_any(), "Transgender"),
(view! { <Trash /> }.into_any(), "Trash"),
(view! { <Trash2 /> }.into_any(), "Trash 2"),
(view! { <TreeDeciduous /> }.into_any(), "Tree Deciduous"),
(view! { <TreePalm /> }.into_any(), "Tree Palm"),
(view! { <TreePine /> }.into_any(), "Tree Pine"),
Expand All @@ -2263,6 +2269,7 @@ pub fn IconsT1() -> impl IntoView {
(view! { <Tv /> }.into_any(), "Tv"),
(view! { <TvMinimal /> }.into_any(), "Tv Minimal"),
(view! { <TvMinimalPlay /> }.into_any(), "Tv Minimal Play"),
(view! { <Type /> }.into_any(), "Type"),
]
key=|icon| icon.1
children=move |(icon, name)| {
Expand All @@ -2279,10 +2286,7 @@ pub fn IconsT1() -> impl IntoView {
pub fn IconsT2() -> impl IntoView {
view! {
<For
each=move || [
(view! { <Type /> }.into_any(), "Type"),
(view! { <TypeOutline /> }.into_any(), "Type Outline"),
]
each=move || [(view! { <TypeOutline /> }.into_any(), "Type Outline")]
key=|icon| icon.1
children=move |(icon, name)| {
view! {
Expand Down Expand Up @@ -2374,6 +2378,8 @@ pub fn IconsV1() -> impl IntoView {
(view! { <VideoOff /> }.into_any(), "Video Off"),
(view! { <Videotape /> }.into_any(), "Videotape"),
(view! { <View /> }.into_any(), "View"),
(view! { <Virus /> }.into_any(), "Virus"),
(view! { <VirusOff /> }.into_any(), "Virus Off"),
(view! { <Voicemail /> }.into_any(), "Voicemail"),
(view! { <Volleyball /> }.into_any(), "Volleyball"),
(view! { <Volume /> }.into_any(), "Volume"),
Expand Down
Loading