- Copy Demo
A simple item with title and description.
Installation
You can run either of the following commands:
Update the imports to match your project setup.
Usage
You can use the Item component in combination with the Button, Avatar and DropdownMenu components.
use crate::components::ui::item::{Item, ItemContent, ItemTitle, ItemDescription, ItemActions, ItemMedia};<Item variant=ItemVariant::Outline>
<ItemContent>
<ItemTitle>"Item Title"</ItemTitle>
<ItemDescription>"Item description text."</ItemDescription>
</ItemContent>
</Item>Examples
Variants
Item component with multiple visual style variants including default, outline, and muted options. This example demonstrates how to create consistent list item styling in Leptos with different visual emphasis levels for building flexible UI layouts in Rust applications.
- Copy Demo
Standard styling with subtle background and borders.
Outlined style with clear borders and transparent background.
Subdued appearance with muted colors for secondary content.
Dropdown Menu
Item component integration with dropdown menus for rich content selection interfaces. This example shows how to combine Item and DropdownMenu components in Leptos to build sophisticated selection menus with Avatar media, descriptions, and actions in Rust applications.
- Copy Demo