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
136 changes: 71 additions & 65 deletions book-examples/dioxus/src/icons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,6 @@ pub fn IconsA1() -> Element {
},
"Album",
),
(
rsx! {
AlignCenter {}
},
"Align Center",
),
(
rsx! {
AlignCenterHorizontal {}
Expand Down Expand Up @@ -207,24 +201,6 @@ pub fn IconsA1() -> Element {
},
"Align Horizontal Space Between",
),
(
rsx! {
AlignJustify {}
},
"Align Justify",
),
(
rsx! {
AlignLeft {}
},
"Align Left",
),
(
rsx! {
AlignRight {}
},
"Align Right",
),
(
rsx! {
AlignStartHorizontal {}
Expand Down Expand Up @@ -645,21 +621,6 @@ pub fn IconsA1() -> Element {
},
"Arrows Up From Line",
),
];
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 IconsA2() -> Element {
let icons = [
(
rsx! {
Asterisk {}
Expand All @@ -684,6 +645,21 @@ pub fn IconsA2() -> Element {
},
"Audio Lines",
),
];
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 IconsA2() -> Element {
let icons = [
(
rsx! {
AudioWaveform {}
Expand Down Expand Up @@ -5001,6 +4977,12 @@ pub fn IconsH1() -> Element {
},
"House",
),
(
rsx! {
HouseHeart {}
},
"House Heart",
),
(
rsx! {
HousePlug {}
Expand Down Expand Up @@ -5124,18 +5106,6 @@ pub fn IconsI1() -> Element {
},
"Inbox",
),
(
rsx! {
IndentDecrease {}
},
"Indent Decrease",
),
(
rsx! {
IndentIncrease {}
},
"Indent Increase",
),
(
rsx! {
IndianRupee {}
Expand Down Expand Up @@ -5445,12 +5415,6 @@ pub fn IconsL1() -> Element {
},
"Lectern",
),
(
rsx! {
LetterText {}
},
"Letter Text",
),
(
rsx! {
Library {}
Expand Down Expand Up @@ -5541,6 +5505,12 @@ pub fn IconsL1() -> Element {
},
"List Chevrons Down Up",
),
(
rsx! {
ListChevronsUpDown {}
},
"List Chevrons Up Down",
),
(
rsx! {
ListCollapse {}
Expand All @@ -5565,6 +5535,18 @@ pub fn IconsL1() -> Element {
},
"List Filter Plus",
),
(
rsx! {
ListIndentDecrease {}
},
"List Indent Decrease",
),
(
rsx! {
ListIndentIncrease {}
},
"List Indent Increase",
),
(
rsx! {
ListMinus {}
Expand Down Expand Up @@ -9261,9 +9243,27 @@ pub fn IconsT1() -> Element {
),
(
rsx! {
Text {}
TextAlignCenter {}
},
"Text",
"Text Align Center",
),
(
rsx! {
TextAlignEnd {}
},
"Text Align End",
),
(
rsx! {
TextAlignJustify {}
},
"Text Align Justify",
),
(
rsx! {
TextAlignStart {}
},
"Text Align Start",
),
(
rsx! {
Expand All @@ -9277,6 +9277,12 @@ pub fn IconsT1() -> Element {
},
"Text Cursor Input",
),
(
rsx! {
TextInitial {}
},
"Text Initial",
),
(
rsx! {
TextQuote {}
Expand All @@ -9295,6 +9301,12 @@ pub fn IconsT1() -> Element {
},
"Text Select",
),
(
rsx! {
TextWrap {}
},
"Text Wrap",
),
(
rsx! {
Theater {}
Expand Down Expand Up @@ -10264,12 +10276,6 @@ pub fn IconsW1() -> Element {
},
"Worm",
),
(
rsx! {
WrapText {}
},
"Wrap Text",
),
(
rsx! {
Wrench {}
Expand Down
19 changes: 10 additions & 9 deletions book-examples/leptos/src/icons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ pub fn IconsA() -> impl IntoView {
(view! { <AlarmClockPlus /> }.into_any(), "Alarm Clock Plus"),
(view! { <AlarmSmoke /> }.into_any(), "Alarm Smoke"),
(view! { <Album /> }.into_any(), "Album"),
(view! { <AlignCenter /> }.into_any(), "Align Center"),
(view! { <AlignCenterHorizontal /> }.into_any(), "Align Center Horizontal"),
(view! { <AlignCenterVertical /> }.into_any(), "Align Center Vertical"),
(view! { <AlignEndHorizontal /> }.into_any(), "Align End Horizontal"),
Expand Down Expand Up @@ -89,9 +88,6 @@ pub fn IconsA() -> impl IntoView {
view! { <AlignHorizontalSpaceBetween /> }.into_any(),
"Align Horizontal Space Between",
),
(view! { <AlignJustify /> }.into_any(), "Align Justify"),
(view! { <AlignLeft /> }.into_any(), "Align Left"),
(view! { <AlignRight /> }.into_any(), "Align Right"),
(view! { <AlignStartHorizontal /> }.into_any(), "Align Start Horizontal"),
(view! { <AlignStartVertical /> }.into_any(), "Align Start Vertical"),
(
Expand Down Expand Up @@ -1010,6 +1006,7 @@ pub fn IconsH() -> impl IntoView {
(view! { <Hotel /> }.into_any(), "Hotel"),
(view! { <Hourglass /> }.into_any(), "Hourglass"),
(view! { <House /> }.into_any(), "House"),
(view! { <HouseHeart /> }.into_any(), "House Heart"),
(view! { <HousePlug /> }.into_any(), "House Plug"),
(view! { <HousePlus /> }.into_any(), "House Plus"),
(view! { <HouseWifi /> }.into_any(), "House Wifi"),
Expand Down Expand Up @@ -1045,8 +1042,6 @@ pub fn IconsI() -> impl IntoView {
(view! { <Images /> }.into_any(), "Images"),
(view! { <Import /> }.into_any(), "Import"),
(view! { <Inbox /> }.into_any(), "Inbox"),
(view! { <IndentDecrease /> }.into_any(), "Indent Decrease"),
(view! { <IndentIncrease /> }.into_any(), "Indent Increase"),
(view! { <IndianRupee /> }.into_any(), "Indian Rupee"),
(view! { <Infinity /> }.into_any(), "Infinity"),
(view! { <Info /> }.into_any(), "Info"),
Expand Down Expand Up @@ -1142,7 +1137,6 @@ pub fn IconsL() -> impl IntoView {
(view! { <Leaf /> }.into_any(), "Leaf"),
(view! { <LeafyGreen /> }.into_any(), "Leafy Green"),
(view! { <Lectern /> }.into_any(), "Lectern"),
(view! { <LetterText /> }.into_any(), "Letter Text"),
(view! { <Library /> }.into_any(), "Library"),
(view! { <LibraryBig /> }.into_any(), "Library Big"),
(view! { <LifeBuoy /> }.into_any(), "Life Buoy"),
Expand All @@ -1158,10 +1152,13 @@ pub fn IconsL() -> impl IntoView {
(view! { <ListCheck /> }.into_any(), "List Check"),
(view! { <ListChecks /> }.into_any(), "List Checks"),
(view! { <ListChevronsDownUp /> }.into_any(), "List Chevrons Down Up"),
(view! { <ListChevronsUpDown /> }.into_any(), "List Chevrons Up Down"),
(view! { <ListCollapse /> }.into_any(), "List Collapse"),
(view! { <ListEnd /> }.into_any(), "List End"),
(view! { <ListFilter /> }.into_any(), "List Filter"),
(view! { <ListFilterPlus /> }.into_any(), "List Filter Plus"),
(view! { <ListIndentDecrease /> }.into_any(), "List Indent Decrease"),
(view! { <ListIndentIncrease /> }.into_any(), "List Indent Increase"),
(view! { <ListMinus /> }.into_any(), "List Minus"),
(view! { <ListMusic /> }.into_any(), "List Music"),
(view! { <ListOrdered /> }.into_any(), "List Ordered"),
Expand Down Expand Up @@ -1890,12 +1887,17 @@ pub fn IconsT() -> impl IntoView {
(view! { <TestTube /> }.into_any(), "Test Tube"),
(view! { <TestTubeDiagonal /> }.into_any(), "Test Tube Diagonal"),
(view! { <TestTubes /> }.into_any(), "Test Tubes"),
(view! { <Text /> }.into_any(), "Text"),
(view! { <TextAlignCenter /> }.into_any(), "Text Align Center"),
(view! { <TextAlignEnd /> }.into_any(), "Text Align End"),
(view! { <TextAlignJustify /> }.into_any(), "Text Align Justify"),
(view! { <TextAlignStart /> }.into_any(), "Text Align Start"),
(view! { <TextCursor /> }.into_any(), "Text Cursor"),
(view! { <TextCursorInput /> }.into_any(), "Text Cursor Input"),
(view! { <TextInitial /> }.into_any(), "Text Initial"),
(view! { <TextQuote /> }.into_any(), "Text Quote"),
(view! { <TextSearch /> }.into_any(), "Text Search"),
(view! { <TextSelect /> }.into_any(), "Text Select"),
(view! { <TextWrap /> }.into_any(), "Text Wrap"),
(view! { <Theater /> }.into_any(), "Theater"),
(view! { <Thermometer /> }.into_any(), "Thermometer"),
(view! { <ThermometerSnowflake /> }.into_any(), "Thermometer Snowflake"),
Expand Down Expand Up @@ -2101,7 +2103,6 @@ pub fn IconsW() -> impl IntoView {
(view! { <WineOff /> }.into_any(), "Wine Off"),
(view! { <Workflow /> }.into_any(), "Workflow"),
(view! { <Worm /> }.into_any(), "Worm"),
(view! { <WrapText /> }.into_any(), "Wrap Text"),
(view! { <Wrench /> }.into_any(), "Wrench"),
]
key=|icon| icon.1
Expand Down
19 changes: 10 additions & 9 deletions book-examples/yew/src/icons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ pub fn IconsA() -> Html {
(html! { <AlarmClockPlus /> }, "Alarm Clock Plus"),
(html! { <AlarmSmoke /> }, "Alarm Smoke"),
(html! { <Album /> }, "Album"),
(html! { <AlignCenter /> }, "Align Center"),
(
html! { <AlignCenterHorizontal /> },
"Align Center Horizontal",
Expand Down Expand Up @@ -90,9 +89,6 @@ pub fn IconsA() -> Html {
html! { <AlignHorizontalSpaceBetween /> },
"Align Horizontal Space Between",
),
(html! { <AlignJustify /> }, "Align Justify"),
(html! { <AlignLeft /> }, "Align Left"),
(html! { <AlignRight /> }, "Align Right"),
(html! { <AlignStartHorizontal /> }, "Align Start Horizontal"),
(html! { <AlignStartVertical /> }, "Align Start Vertical"),
(
Expand Down Expand Up @@ -1040,6 +1036,7 @@ pub fn IconsH() -> Html {
(html! { <Hotel /> }, "Hotel"),
(html! { <Hourglass /> }, "Hourglass"),
(html! { <House /> }, "House"),
(html! { <HouseHeart /> }, "House Heart"),
(html! { <HousePlug /> }, "House Plug"),
(html! { <HousePlus /> }, "House Plus"),
(html! { <HouseWifi /> }, "House Wifi"),
Expand Down Expand Up @@ -1074,8 +1071,6 @@ pub fn IconsI() -> Html {
(html! { <Images /> }, "Images"),
(html! { <Import /> }, "Import"),
(html! { <Inbox /> }, "Inbox"),
(html! { <IndentDecrease /> }, "Indent Decrease"),
(html! { <IndentIncrease /> }, "Indent Increase"),
(html! { <IndianRupee /> }, "Indian Rupee"),
(html! { <Infinity /> }, "Infinity"),
(html! { <Info /> }, "Info"),
Expand Down Expand Up @@ -1168,7 +1163,6 @@ pub fn IconsL() -> Html {
(html! { <Leaf /> }, "Leaf"),
(html! { <LeafyGreen /> }, "Leafy Green"),
(html! { <Lectern /> }, "Lectern"),
(html! { <LetterText /> }, "Letter Text"),
(html! { <Library /> }, "Library"),
(html! { <LibraryBig /> }, "Library Big"),
(html! { <LifeBuoy /> }, "Life Buoy"),
Expand All @@ -1184,10 +1178,13 @@ pub fn IconsL() -> Html {
(html! { <ListCheck /> }, "List Check"),
(html! { <ListChecks /> }, "List Checks"),
(html! { <ListChevronsDownUp /> }, "List Chevrons Down Up"),
(html! { <ListChevronsUpDown /> }, "List Chevrons Up Down"),
(html! { <ListCollapse /> }, "List Collapse"),
(html! { <ListEnd /> }, "List End"),
(html! { <ListFilter /> }, "List Filter"),
(html! { <ListFilterPlus /> }, "List Filter Plus"),
(html! { <ListIndentDecrease /> }, "List Indent Decrease"),
(html! { <ListIndentIncrease /> }, "List Indent Increase"),
(html! { <ListMinus /> }, "List Minus"),
(html! { <ListMusic /> }, "List Music"),
(html! { <ListOrdered /> }, "List Ordered"),
Expand Down Expand Up @@ -1941,12 +1938,17 @@ pub fn IconsT() -> Html {
(html! { <TestTube /> }, "Test Tube"),
(html! { <TestTubeDiagonal /> }, "Test Tube Diagonal"),
(html! { <TestTubes /> }, "Test Tubes"),
(html! { <Text /> }, "Text"),
(html! { <TextAlignCenter /> }, "Text Align Center"),
(html! { <TextAlignEnd /> }, "Text Align End"),
(html! { <TextAlignJustify /> }, "Text Align Justify"),
(html! { <TextAlignStart /> }, "Text Align Start"),
(html! { <TextCursor /> }, "Text Cursor"),
(html! { <TextCursorInput /> }, "Text Cursor Input"),
(html! { <TextInitial /> }, "Text Initial"),
(html! { <TextQuote /> }, "Text Quote"),
(html! { <TextSearch /> }, "Text Search"),
(html! { <TextSelect /> }, "Text Select"),
(html! { <TextWrap /> }, "Text Wrap"),
(html! { <Theater /> }, "Theater"),
(html! { <Thermometer /> }, "Thermometer"),
(html! { <ThermometerSnowflake /> }, "Thermometer Snowflake"),
Expand Down Expand Up @@ -2149,7 +2151,6 @@ pub fn IconsW() -> Html {
(html! { <WineOff /> }, "Wine Off"),
(html! { <Workflow /> }, "Workflow"),
(html! { <Worm /> }, "Worm"),
(html! { <WrapText /> }, "Wrap Text"),
(html! { <Wrench /> }, "Wrench"),
];
icons
Expand Down
Loading
Loading