pub struct ColProps {Show 18 fields
pub xs: Option<ColumnSize>,
pub sm: Option<ColumnSize>,
pub md: Option<ColumnSize>,
pub lg: Option<ColumnSize>,
pub xl: Option<ColumnSize>,
pub xxl: Option<ColumnSize>,
pub offset: Option<u8>,
pub offset_sm: Option<u8>,
pub offset_md: Option<u8>,
pub offset_lg: Option<u8>,
pub offset_xl: Option<u8>,
pub offset_xxl: Option<u8>,
pub order: Option<u8>,
pub order_sm: Option<u8>,
pub order_md: Option<u8>,
pub order_lg: Option<u8>,
pub class: String,
pub children: Element,
/* private fields */
}Expand description
Bootstrap Col (column) component with responsive breakpoint props.
rsx! {
Col { xs: ColumnSize::Span(12), md: ColumnSize::Span(6), lg: ColumnSize::Span(4),
"Responsive column"
}
Col { lg: ColumnSize::Auto, "Auto-width column" }
}Fields§
§xs: Option<ColumnSize>Column size at xs breakpoint (default, no breakpoint prefix).
sm: Option<ColumnSize>Column size at sm breakpoint.
md: Option<ColumnSize>Column size at md breakpoint.
lg: Option<ColumnSize>Column size at lg breakpoint.
xl: Option<ColumnSize>Column size at xl breakpoint.
xxl: Option<ColumnSize>Column size at xxl breakpoint.
offset: Option<u8>Offset at xs breakpoint.
offset_sm: Option<u8>Offset at sm breakpoint.
offset_md: Option<u8>Offset at md breakpoint.
offset_lg: Option<u8>Offset at lg breakpoint.
offset_xl: Option<u8>Offset at xl breakpoint.
offset_xxl: Option<u8>Offset at xxl breakpoint.
order: Option<u8>Column order (0-5 or “first”/“last” via class prop).
order_sm: Option<u8>Column order at sm breakpoint.
order_md: Option<u8>Column order at md breakpoint.
order_lg: Option<u8>Column order at lg breakpoint.
class: StringAdditional CSS classes.
children: ElementChild elements.
Implementations§
Source§impl ColProps
impl ColProps
Sourcepub fn builder() -> ColPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> ColPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building ColProps.
On the builder, call .xs(...)(optional), .sm(...)(optional), .md(...)(optional), .lg(...)(optional), .xl(...)(optional), .xxl(...)(optional), .offset(...)(optional), .offset_sm(...)(optional), .offset_md(...)(optional), .offset_lg(...)(optional), .offset_xl(...)(optional), .offset_xxl(...)(optional), .order(...)(optional), .order_sm(...)(optional), .order_md(...)(optional), .order_lg(...)(optional), .class(...)(optional), .attributes(...)(optional), .children(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of ColProps.