Skip to content

Commit b934998

Browse files
committed
feat: update new icon rust create structure
1 parent 02c6a01 commit b934998

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

icons-from-react.nu

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,16 @@ def main [
3535
let rust_content = r#'use leptos::prelude::*;
3636
3737
#[component]
38-
pub fn $name(#[prop(into, optional, default = 24)] size: u32) -> impl IntoView {
38+
pub fn $name(
39+
#[prop(into, optional, default = 24)] size: i32,
40+
#[prop(into, default = "".to_string())] class: String,
41+
) -> impl IntoView {
3942
view! {
4043
<svg
4144
width={size}
4245
height={size}
4346
viewBox="0 0 24 24"
44-
fill="none"
47+
class=class
4548
xmlns="http://www.w3.org/2000/svg"
4649
>
4750
<path

0 commit comments

Comments
 (0)