Compose Lab

Showcase

Components from mobblox-components and Google's compose-samples, unchanged. Each one is parsed and rendered from its Kotlin source right here in your browser, with no compiler or emulator. Click around: state, animations and ripples run live.

Featured

A design system at work

Bolt, the design system of Thunderbird for Android: its catalog page by page, then an inbox built from it. Switch between Thunderbird and K-9 Mail, or light and dark, and every screen follows.

See the design system

Sleep Graph

Chart

A week of sleep from JetLagged. A custom Layout places each night on an hour timeline from its java.time data. Tap a night to open its sleep stages.

From android/compose-samples, under the Apache 2.0 license

Source

Snack Search

Screen

Jetsnack's search screen. Focus the field for suggestions, then type: a LaunchedEffect runs the suspending search, with a spinner while it waits. Categories sit in a custom Layout grid.

From android/compose-samples, under the Apache 2.0 license

Source

Color Picker

Impression

Pick a swatch: its width grows with animateFloatAsState and the background follows with animateColorAsState.

Source

Expandable FAB

Button

A floating action button that rotates and unfolds into labelled actions.

Source

To-do Checklist

Button

Tap an item to tick it off: the checkbox fills and a line strikes the text through.

Source

Multiplayer Join

Layout

Add or remove players with the stepper and the avatar row grows and shrinks with them.

Source

Flip Button

Button

Savings goals that flip over on tap to show their progress.

Source

Checkable Action Items

Button

A setup checklist: tap a row to tick it, and a strike-through runs across its label.

Source

Price Tag Cards

Card

Product photos whose notched price tag corner is drawn with a Path.

Source

Stock Line Chart

Chart

Sparklines drawn on a Canvas, green when a ticker trends up and red when it falls. The random data is seeded, so every render matches.

Source

Swipe to Pay

Button

A swipe-to-confirm button with an arrow handle.

Source

Hinge Modal

Modal

A tip modal with a check badge cut into its corner by a custom shape.

Source

Peanut Modal

Modal

An invite modal with a badge over its top edge and a bold span built with buildAnnotatedString.

Source

Scrolling Onboarding

Layout

An onboarding screen with tilted photo columns over a gradient and a sign-up call to action.

Source

Call Indicator

Loading

A call button that breathes with an infinite transition over pulsing rings from PulseLoading. Tap it to end the call.

Source

Tab Bar Shortcuts

Layout

A floating tab bar. Long-press the menu tab and shortcuts slide in one by one above it.

Source

Pausable Countdown

Loading

A countdown bar that fills over five seconds. Hold the button to pause it.

Source

Onboarding Progress

Interaction

A setup checklist. Tick a task off and the step bar above it fills to match, using StepProgress and CheckableActionItem.

Source

Step Progress

Loading

A segmented bar laid out with BoxWithConstraints. Each step fills in turn and a check icon rides its edge.

Source

Button Click Effects

Interaction

Four press effects written as custom modifiers with composed: bounce, fade, press down and shake. Press and hold a button.

Source

Gauge Progress

Chart

Score gauges drawn with drawArc on a Canvas. The arcs sweep to the score and the label changes with AnimatedContent.

Source

Download Indicator

Loading

A bar that fills to 100 while AnimatedCounter rolls each digit, then shows DONE.

Source

Hacker Text

Impression

Each letter scrambles through random characters before it settles, one AnimatedContent per letter.

Source

Typewriter

Impression

Types each phrase after "Mobblox is" letter by letter, deletes it and moves on to the next.

Source

Animated Scroll List

Layout

Scroll the list: the top swatch shrinks and fades as it leaves, driven by the LazyListState scroll offset.

Source

Selectable Bar Chart

Chart

Vertical and horizontal bar charts. Tap a bar to select it and the colors change with animateColorAsState.

Source

Donut Chart

Chart

A donut chart drawn slice by slice with drawArc on a Canvas.

Source

Double Circular Progress

Loading

Two progress rings around a label, animated with animateFloatAsState.

Source

Daily Goals

Loading

A week of goal rings built from DoubleCircularProgressBar, with a check over each day that hit its goal.

Source

Hidden Drawer

Layout

Tap the FAB and the content slides aside with graphicsLayer to show a menu. The FAB calls ::toggleState on an anonymous FabWrapperScope.

Source

Audio Waveform

Chart

Drag across a waveform to seek. The spikes fit the measured Canvas size, and the progress fills them with BlendMode.SrcAtop.

Source

Swipeable List

Interaction

Swipe an email left to delete it or right to bookmark it. SwipeToDismiss with a confirmStateChange, then AnimatedVisibility shrinks the row away.

Source

Uber Bottom Sheet

Bottom sheet

A BottomSheetScaffold that peeks 56dp. Drag it up to pick a vehicle, then confirm.

Source

Stocks Bottom Sheet

Bottom sheet

Drag the news sheet up: once it is fully open, a ticker of stocks slides in above it and scrolls itself with animateScrollTo.

Source