pub struct IconProps {
pub leptos_icons_icon: Option<MaybeSignal<Icon>>,
pub svg_child: Option<MaybeSignal<&'static str>>,
pub svg_viewbox: Option<MaybeSignal<String>>,
pub id: Option<AttributeValue>,
pub class: Option<MaybeSignal<String>>,
pub style: Option<AttributeValue>,
pub aria_label: Option<AttributeValue>,
pub size: Option<MaybeSignal<String>>,
}
Expand description
Props for the Icon
component.
Icon Leptos Component
Icons index: https://carlosted.github.io/icondata/
Documentation: https://github.com/Carlosted/leptos-icons
§Optional Props
- leptos_icons_icon:
impl Into<MaybeSignal<leptos_icons::Icon>>
- svg_child: [
impl Into<MaybeSignal<&'static str>>
](MaybeSignal<&’static str>) - svg_viewbox:
impl Into<MaybeSignal<String>>
- id:
impl Into<AttributeValue>
- class:
impl Into<MaybeSignal<String>>
- style:
impl Into<AttributeValue>
- aria_label:
impl Into<AttributeValue>
- size:
impl Into<MaybeSignal<String>>
Fields§
§leptos_icons_icon: Option<MaybeSignal<Icon>>
§svg_child: Option<MaybeSignal<&'static str>>
§svg_viewbox: Option<MaybeSignal<String>>
§id: Option<AttributeValue>
§class: Option<MaybeSignal<String>>
§style: Option<AttributeValue>
§aria_label: Option<AttributeValue>
§size: Option<MaybeSignal<String>>
Implementations§
Source§impl IconProps
impl IconProps
Sourcepub fn builder() -> IconPropsBuilder<((), (), (), (), (), (), (), ())>
pub fn builder() -> IconPropsBuilder<((), (), (), (), (), (), (), ())>
Create a builder for building IconProps
.
On the builder, call .leptos_icons_icon(...)
(optional), .svg_child(...)
(optional), .svg_viewbox(...)
(optional), .id(...)
(optional), .class(...)
(optional), .style(...)
(optional), .aria_label(...)
(optional), .size(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of IconProps
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IconProps
impl !RefUnwindSafe for IconProps
impl !Send for IconProps
impl !Sync for IconProps
impl Unpin for IconProps
impl !UnwindSafe for IconProps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more