Skip to main content

Module primitives

Module primitives 

Source
Expand description

Foundational primitives — Button, Card, Surface, Badge, Divider, Kbd, IconTile, IconButton, ToggleSwitch, SegmentedControl, Slider, SelectPill, ColorSwatch, Meter. The most reusable layer; downstream feature components in shell / recorder / editor / cursor / menus / library consume them.

Re-exports§

pub use badge::Badge;
pub use badge::BadgeKind;
pub use button::Button;
pub use button::ButtonSize;
pub use button::ButtonVariant;
pub use card::Card;
pub use card::CardBody;
pub use card::CardHeader;
pub use chevron_down::ChevronDown;
pub use color_swatch::ColorSwatch;
pub use device_icons::Camera;
pub use device_icons::Mic;
pub use device_icons::Volume2;
pub use divider::Divider;
pub use divider::DividerOrientation;
pub use icon_button::IconButton;
pub use icon_button::IconButtonVariant;
pub use icon_tile::IconTile;
pub use icon_tile::IconTileKind;
pub use kbd::Kbd;
pub use meter::Meter;
pub use meter::lit_segments;
pub use nav_icons::CircleDot;
pub use nav_icons::Folder;
pub use nav_icons::LayoutPanelTop;
pub use nav_icons::MousePointer2;
pub use nav_icons::Settings;
pub use segmented_control::Segment;
pub use segmented_control::SegmentedControl;
pub use select_pill::SelectPill;
pub use slider::Slider;
pub use slider::slider_percent;
pub use surface::Surface;
pub use surface::SurfaceKind;
pub use toggle_switch::ToggleSwitch;

Modules§

badge
Badge — small inline label with semantic variants (M-UI.1 / AUT-121).
button
Button — rust-ui-style with a small variant matrix.
card
Card — surface container with optional header + body slots.
chevron_down
Lucide-style chevron-down SVG. Paints with currentColor.
color_swatch
ColorSwatch — circular color tile for Cursor Studio (M-UI.4 / AUT-124).
device_icons
Lucide-style SVG icons for capture-source rows (camera, mic, system audio). Paint with currentColor and stroke at 1.75 so they read as outlined glyphs inside the small device tiles. Path data copied verbatim from upstream lucide.
divider
Divider — thin separator line (M-UI.1 / AUT-121).
icon_button
IconButton — square icon-only button (M-UI.4 / AUT-124).
icon_tile
IconTile — small square tile holding an icon or monogram (M-UI.1 / AUT-121).
kbd
Kbd — monospaced keyboard-shortcut chip (M-UI.1 / AUT-121).
meter
Meter — audio-level bars (M-UI.4 / AUT-124).
nav_icons
Lucide-style SVG icons for the navigation rail. Paint with currentColor. Path data copied verbatim from upstream lucide.
segmented_control
SegmentedControl — pill-style radio-tab control (M-UI.4 / AUT-124).
select_pill
SelectPill — compact pill button that opens a popover (M-UI.4 / AUT-124).
slider
Slider — value slider (M-UI.4 / AUT-124).
surface
Surface — semantic background container (M-UI.1 / AUT-121).
toggle_switch
ToggleSwitch — on/off switch (M-UI.4 / AUT-124).