Skip to main content

Module widgets

Module widgets 

Source
Expand description

The Liquid component set.

Structs§

GlassButtonSpec
Configuration for GlassButton / GlassIconButton.
GlassIconButtonGroupItem
One action in a GlassIconButtonGroup.
GlassIconButtonGroupScope
The scope a group’s actions are declared in.
GlassIconButtonGroupSpec
Geometry and interaction material for GlassIconButtonGroup.
LiquidDropdownMenuSpec
Visual configuration for an anchored liquid dropdown.
LiquidListRowSpec
Configuration for LiquidListRow.
LiquidMenuAbsorbedSource
A neighboring glass icon control whose volume and foreground are absorbed by an opening menu surface.
LiquidMenuGesture
Shared ownership channel between a menu trigger and its popup. The trigger keeps receiving the original pointer after the popup appears; the popup reads that live position and consumes its eventual release.
LiquidMenuItem
One menu entry.
LiquidMenuScope
The scope a menu’s rows are declared in.
LiquidMenuSpec
Layout parameters for a LiquidMenu.
LiquidNavBarSpec
Configuration for LiquidNavBar.
LiquidSearchFieldSpec
Configuration for LiquidSearchField.
LiquidSegmentedControlScope
The scope a segmented control’s content is declared in.
LiquidTab
One tab’s artwork, label, and icon treatment.
LiquidTabBarScope
The scope a tab bar’s destinations are declared in.
LiquidTabBarSpec
Layout parameters for a LiquidTabBar.

Enums§

GlassButtonSize
Native text button sizes, including their label style and content insets.
GlassButtonStyle
Visual style of a GlassButton.
LiquidTabIcon
Artwork displayed in a tab’s shared icon frame.
LiquidTabIconStyle
Visual treatment for a tab icon.

Functions§

Card
Theme-aware elevated card container.
GlassButton
A glass button. content composes the label (see GlassButton with Text, or an crate::icons::Icon + text row).
GlassButtonLabel
Convenience text label styled for the enclosing button.
GlassIconButton
A circular glass icon button (44dp target).
GlassIconButtonGroup
A row of circular actions whose pressed glass can join adjacent members. Each member keeps its own base material and foreground; one transparent, persistent interaction field supplies the shared refraction and neck.
GlassSurface
A container rendered on the Liquid Glass material: its backdrop is refracted/blurred behind content, clipped to glass.shape. modifier applies to the whole surface, glass included, as a Compose modifier does: its offset moves the glass and its padding is space around it.
LiquidActionChip
A small glass action button with no selected state: Save, Cancel, Retry. prominent fills the surface with the accent color.
LiquidCard
An elevated glass pane with the grouped-inset card look: a resting pane that transmits its backdrop through the translucent surface wash.
LiquidChip
A selectable compact glass button. Selection fills its glass body with the accent color and changes its label to the contrasting foreground.
LiquidDropdownMenu
Renders an anchor and positions a LiquidMenu from the anchor’s measured window rectangle, without application-owned coordinate calculations.
LiquidLanguagePicker
A language chooser for an application that uses Cranpose localization.
LiquidListRow
One tappable row inside a LiquidCard / LiquidListSection: a press wash and an optional hairline separator; content lays out the row.
LiquidListSection
A titled group of rows on one card (iOS grouped list section).
LiquidMenu
A glass popup menu anchored to anchor (window coordinates of the button that opened it). absorbed contains adjacent glass controls whose combined source volume and foreground feed the opening droplet. While expanded, taps outside dismiss via on_dismiss; a tap on a row runs that row’s own action and then dismisses, unless the row keeps the menu open.
LiquidMenuAbsorbedIconButton
A neighboring glass icon source that keeps its material mounted while an open menu owns and deforms its foreground.
LiquidMenuIconButton
A glass icon trigger that owns one continuous menu gesture. A short click opens normally; a hold opens while still pressed, then the same pointer can slide over popup rows and release to fire one.
LiquidNavBar
A large-title navigation bar driven by the content’s ScrollState (offset 0 = top). leading/trailing compose the bar buttons.
LiquidSearchField
A capsule search field: magnifier icon and editable text.
LiquidSegmentedControl
A segmented control. content declares equal-width segments; selected is the active index; on_select receives the committed index. Segments tap AND swipe: dragging slides the indicator with the finger as a glass lens. The look comes from liquid_segmented_style.
LiquidSlider
A 0..=1 slider. The caller owns value; on_change streams new values while dragging the thumb and while a released drag settles.
LiquidTabBar
A unified floating glass tab bar with every destination inside one pill.
LiquidTabBarSearchAccessory
The standard detached accessory: a circular glass search button.
LiquidTabBarWithAccessory
A floating glass tab bar with a detached accessory to its right.
LiquidToggle
An on/off switch. checked is owned by the caller; on_change receives the requested new value. The thumb both taps and swipes.
SearchBar
The themed search field with the conventional Compose name.
SearchField
Field-oriented name for SearchBar.
Surface
Theme-aware surface container using the current Liquid color roles.
liquid_menu_trigger_input
Attaches the shared menu-trigger gesture to ANY surface (the circular nav button, a filter pill, …): a tap opens the menu; a long press claims the gesture and opens it while the finger is still down, and the SAME stream then slides through the opened menu’s rows — keeps-open accordion rows included — committing on release.
liquid_nav_bar_expanded_height
Total height the bar family occupies while expanded (inline bar + large title) — content’s top padding.
rememberLiquidMenuGesture
Remembers one continuous menu gesture channel.
tab_lens_rest_width
The resting selection width for one destination’s allocation in the content strip. Cells overlap; their pitch is the remaining strip width divided by the number of gaps.
tab_lens_resting_left
The settled cell origin for a selected index and the distance between cell centers.