pub struct IconProps {
pub icon: Icon,
pub id: Option<AttributeValue>,
pub class: Option<AttributeValue>,
pub style: Option<AttributeValue>,
pub aria_label: Option<AttributeValue>,
}
Expand description
Props for the Icon
component.
Icon Leptos Component
Icons index: https://carlosted.github.io/icondata/
Documentation: https://github.com/Carlosted/leptos-icons
Required Props
Optional Props
- id:
impl Into<AttributeValue>
- class:
impl Into<AttributeValue>
- style:
impl Into<AttributeValue>
- aria_label:
impl Into<AttributeValue>
Fields§
§icon: Icon
§id: Option<AttributeValue>
§class: Option<AttributeValue>
§style: Option<AttributeValue>
§aria_label: Option<AttributeValue>
Implementations§
source§impl IconProps
impl IconProps
sourcepub fn builder() -> IconPropsBuilder<((), (), (), (), ())>
pub fn builder() -> IconPropsBuilder<((), (), (), (), ())>
Create a builder for building IconProps
.
On the builder, call .icon(...)
, .id(...)
(optional), .class(...)
(optional), .style(...)
(optional), .aria_label(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of IconProps
.
Trait Implementations§
Auto Trait Implementations§
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