pub trait Sizable: Sized {
// Required method
fn with_size(self, size: impl Into<Size>) -> Self;
// Provided methods
fn xsmall(self) -> Self { ... }
fn small(self) -> Self { ... }
fn large(self) -> Self { ... }
}Expand description
A trait for setting the size of an element. Size::Medium is use by default.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl Sizable for Accordion
impl Sizable for AccordionItem
impl Sizable for Alert
impl Sizable for Attachment
impl Sizable for AttachmentMedia
impl Sizable for Avatar
impl Sizable for AvatarGroup
impl Sizable for Badge
impl Sizable for Button
impl Sizable for ButtonGroup
impl Sizable for Calendar
impl Sizable for CarouselNext
impl Sizable for CarouselPaginationItem
impl Sizable for CarouselPrevious
impl Sizable for Checkbox
impl Sizable for Clipboard
impl Sizable for ColorPicker
impl Sizable for ColorSelect
impl Sizable for DatePicker
impl Sizable for DescriptionList
impl Sizable for DropdownButton
impl Sizable for Editor
Match the padding and density of Input and Textarea in the same form by applying the same size tier. The editor keeps its independently configured code font size and line height.