Expand description
The Liquid component set.
Structs§
- Glass
Button Spec - Configuration for
GlassButton/GlassIconButton. - Glass
Icon Button Group Item - One action in a
GlassIconButtonGroup. - Glass
Icon Button Group Scope - The scope a group’s actions are declared in.
- Glass
Icon Button Group Spec - Geometry and interaction material for
GlassIconButtonGroup. - Liquid
Dropdown Menu Spec - Visual configuration for an anchored liquid dropdown.
- Liquid
List RowSpec - Configuration for
LiquidListRow. - Liquid
Menu Absorbed Source - A neighboring glass icon control whose volume and foreground are absorbed by an opening menu surface.
- Liquid
Menu Gesture - 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.
- Liquid
Menu Item - One menu entry.
- Liquid
Menu Scope - The scope a menu’s rows are declared in.
- Liquid
Menu Spec - Layout parameters for a
LiquidMenu. - Liquid
NavBar Spec - Configuration for
LiquidNavBar. - Liquid
Search Field Spec - Configuration for
LiquidSearchField. - Liquid
Segmented Control Scope - The scope a segmented control’s content is declared in.
- Liquid
Tab - One tab’s artwork, label, and icon treatment.
- Liquid
TabBar Scope - The scope a tab bar’s destinations are declared in.
- Liquid
TabBar Spec - Layout parameters for a
LiquidTabBar.
Enums§
- Glass
Button Size - Native text button sizes, including their label style and content insets.
- Glass
Button Style - Visual style of a
GlassButton. - Liquid
TabIcon - Artwork displayed in a tab’s shared icon frame.
- Liquid
TabIcon Style - Visual treatment for a tab icon.
Functions§
- Card
- Theme-aware elevated card container.
- Glass
Button - A glass button.
contentcomposes the label (seeGlassButtonwithText, or ancrate::icons::Icon+ text row). - Glass
Button Label - Convenience text label styled for the enclosing button.
- Glass
Icon Button - A circular glass icon button (44dp target).
- Glass
Icon Button Group - 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.
- Glass
Surface - A container rendered on the Liquid Glass material: its backdrop is
refracted/blurred behind
content, clipped toglass.shape.modifierapplies to the whole surface, glass included, as a Compose modifier does: its offset moves the glass and its padding is space around it. - Liquid
Action Chip - A small glass action button with no selected state: Save, Cancel, Retry.
prominentfills the surface with the accent color. - Liquid
Card - An elevated glass pane with the grouped-inset card look: a resting pane that transmits its backdrop through the translucent surface wash.
- Liquid
Chip - A selectable compact glass button. Selection fills its glass body with the accent color and changes its label to the contrasting foreground.
- Liquid
Dropdown Menu - Renders an anchor and positions a
LiquidMenufrom the anchor’s measured window rectangle, without application-owned coordinate calculations. - Liquid
Language Picker - A language chooser for an application that uses Cranpose localization.
- Liquid
List Row - One tappable row inside a
LiquidCard/LiquidListSection: a press wash and an optional hairline separator;contentlays out the row. - Liquid
List Section - A titled group of rows on one card (iOS grouped list section).
- Liquid
Menu - A glass popup menu anchored to
anchor(window coordinates of the button that opened it).absorbedcontains adjacent glass controls whose combined source volume and foreground feed the opening droplet. Whileexpanded, taps outside dismiss viaon_dismiss; a tap on a row runs that row’s own action and then dismisses, unless the row keeps the menu open. - Liquid
Menu Absorbed Icon Button - A neighboring glass icon source that keeps its material mounted while an open menu owns and deforms its foreground.
- Liquid
Menu Icon Button - 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.
- Liquid
NavBar - A large-title navigation bar driven by the content’s
ScrollState(offset 0 = top).leading/trailingcompose the bar buttons. - Liquid
Search Field - A capsule search field: magnifier icon and editable text.
- Liquid
Segmented Control - A segmented control.
contentdeclares equal-width segments;selectedis the active index;on_selectreceives the committed index. Segments tap AND swipe: dragging slides the indicator with the finger as a glass lens. The look comes fromliquid_segmented_style. - Liquid
Slider - A 0..=1 slider. The caller owns
value;on_changestreams new values while dragging the thumb and while a released drag settles. - Liquid
TabBar - A unified floating glass tab bar with every destination inside one pill.
- Liquid
TabBar Search Accessory - The standard detached accessory: a circular glass search button.
- Liquid
TabBar With Accessory - A floating glass tab bar with a detached accessory to its right.
- Liquid
Toggle - An on/off switch.
checkedis owned by the caller;on_changereceives the requested new value. The thumb both taps and swipes. - Search
Bar - The themed search field with the conventional Compose name.
- Search
Field - 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.
- remember
Liquid Menu Gesture - 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.