Expand description
Glassy UI components.
Visual contract: Paper file Glassy UI.
Re-exports§
pub use motion::cubic_bezier;pub use motion::ease_in_cubic;pub use motion::ease_out_cubic;pub use motion::init as init_motion;pub use motion::use_motion_value;pub use motion::AnimatePresence;pub use motion::Ease;pub use motion::Motion;pub use motion::MotionStyle;pub use motion::MotionValue;pub use motion::MotionValueStore;pub use motion::PresenceMode;pub use motion::Stagger;pub use motion::StyledSlot;pub use motion::Transition;pub use motion::Variants;pub use theme::init as init_theme;pub use theme::paint;pub use theme::rgb;pub use theme::ActiveTheme;pub use theme::Theme;pub use theme::ThemeKind;pub use theme::FONT_FAMILY;
Modules§
- motion
- Declarative motion primitives inspired by motion.dev.
- theme
- Process-wide light/dark theme for Glassy UI.
Structs§
- Alert
Dialog - Controlled destructive confirmation with safe focus and a locked scrim.
- Assets
- Bundled icons and Inter.
- Badge
- A compact, non-interactive status or count chip.
- Button
- Clickable glass button matching Paper
Glassy UI→ Buttons. - Button
Chrome - Per-variant paint used by
crate::Button. - Button
Group - Clipped outline pill used for the Paper “Save draft | Publish” pair.
- Checkbox
- 16×16 radius-6 mark matching Paper
Glassy UI→ Checkboxes. - Circular
Progress - Determinate 24px circular progress matching Paper
Glassy UI→ Progress. - Context
Menu - Pointer-anchored menu. Same items as
crate::DropdownMenu, origin at the click. - Dialog
- Controlled modal overlay with Escape, scrim dismissal, and focus restoration.
- Dialog
Content - Radius-10 dialog panel matching the Paper material.
- Dialog
Description - Supporting copy beneath a dialog title.
- Dialog
Footer - Right-aligned dialog action row.
- Dialog
Header - Groups a dialog title and supporting description.
- Dialog
Title - Dialog heading text.
- Dropdown
Menu - Trigger-anchored menu with pointer, keyboard, focus, and one-level submenu behavior.
- Dropdown
Menu Item - Field
Chrome - Per-state paint used by
crate::Input. - Icon
- SVG icon painted with
text_color. - Input
- Single-line field matching Paper
Glassy UI→ Inputs. - Kbd
- Ghost glass chip matching Paper
Glassy UI→ Kbd. Not a button. - Label
- 13/500 name that sits above a field. Never inside it.
- Popover
- Trigger-anchored non-modal content with click, Escape, and outside dismissal.
- Popover
Content - Secondary-glass popover panel matching Paper
Glassy UI→ Popovers. - Popover
Description - Supporting page metadata used inside a
PopoverContent. - Popover
Title - Medium page-meta heading used inside a
PopoverContent. - Progress
- Determinate linear progress matching Paper
Glassy UI→ Progress. - Radio
- 16×16 circle matching Paper
Glassy UI→ Radios. - Select
- Closed field is Input chrome plus a chevron. Open list is secondary glass.
- Select
Item - One row in the open list.
- Separator
- 1px rule matching Paper
Glassy UI→ Separators. - Skeleton
- Pulsing secondary-glass placeholder matching Paper
Glassy UI→ Skeletons. - Spinner
- Indeterminate spinner. Track + 120° arc, one turn every 700ms.
- Switch
- 36×20 pill matching Paper
Glassy UI→ Switches. - Tooltip
- Inverse-glass tooltip matching Paper
Glassy UI→ Tooltips.
Enums§
- Badge
Variant - Visual treatment from Paper
Glassy UI→ Badges. - Button
Size - Height / type scale from Paper.
- Button
Variant - Visual treatment from the Paper Buttons page.
- Check
State - Unchecked / checked / mixed, from Paper Checkboxes.
- Dropdown
Menu Entry - Field
State - Rest / focus / disabled / invalid paint for Input and Textarea.
- Icon
Name - Icons used on the Paper Buttons page.
- Popover
Placement - Separator
Orientation - Horizontal 280×1 or vertical 1×36. Zinc at 12%, not a black rule.
- Skeleton
Shape - Paper Skeleton shapes and their default geometry.
- Spinner
Size - Paper sizes: 16 / 20 / 24 / 32.
- Spinner
Tone - Paper Color row: Default / Muted / Inverse / Destructive.
- Tooltip
Placement - Paper placements: above / below / start / end of the trigger.
Functions§
- init
- Bind kit keystrokes (text fields). Call once at startup.
- load_
fonts - Register the bundled Inter variable face. Call once at startup.
- textarea
- Many-line field. Same chrome as
Input, 320×96, line-height 20.