FloatingButton · Action · preview
Keeps the screen’s primary create or add action above the content.
Android and KMP are declared rendering targets in the contract. Editor scope: Raw only.
AI authoring: contract flag not set; excluded from Stage 3 screen generation — no AI contract flag. Actual selection depends on the generation route and research input conditions.
Support and authoring conditions were checked against source on 2026-10-13. Properties, behavior and examples below retain the 2026-09-10 reference snapshot; they do not replace device validation.
Preview and property controls
Start the KMP preview and adjust properties to update the example screen and JSON. Reset the example to restore its initial state.
Usage guidance
Use it for
- A single primary screen action such as adding a record
Avoid it for
- When several actions have equal priority
- When a regular inline button is sufficient
Anatomy and accessibility
-
Action label
-
Container
-
Screen floatingActionButton slot
-
Use a verb label with a clear result and preserve keyboard focus order.
Props contract
Runtime defaults and example values are different. Properties without a documented default remain explicitly unspecified.
| Key · label | Type · constraints | Required | Runtime default | Example | Support |
|---|---|---|---|---|---|
label · Label | text | No | "Button" | "기록 추가" | Android / KMP |
width · Width | select · fill, wrap | No | "fill" | "fill" | Android / KMP |
height · Height | number · min 1 | No | 56 | 56 | Android / KMP |
cornerRadius · Corner radius | number · min 0 | No | 16 | 16 | Android / KMP |
fontSize · Font size | number · min 1 | No | 16 | — | Android / KMP |
fontWeight · Font weight | select · medium, semibold, bold | No | "medium" | — | Android / KMP |
backgroundColor · Background color | color | No | No documented default | — | Android / KMP |
backgroundColorRole · Background role | select · primary, surface | No | No documented default | — | Android / KMP |
textColor · Text color | color | No | No documented default | — | Android / KMP |
textColorRole · Text role | select · onPrimary, text | No | No documented default | — | Android / KMP |
Binding
This static content component has no default binding.
Supported actions
| Event | Android | KMP Preview | Notes |
|---|---|---|---|
onClick | Yes | Yes | Place it in screen.floatingActionButton. |
Runtime notes
No additional runtime notes are declared. Refer to the contract tables for platform support.
Related components and source
Contract verified: 2026-09-02 · schemaVersion 2.
Based on the reference-site snapshot generated on September 10, 2026. The documentation import date and runtime verification date are separate.