Action

Floating button

Keeps the screen’s primary create or add action above the content.

Reviewed
On this page

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.

All components

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 · labelType · constraintsRequiredRuntime defaultExampleSupport
label · LabeltextNo"Button""기록 추가"Android / KMP
width · Widthselect · fill, wrapNo"fill""fill"Android / KMP
height · Heightnumber · min 1No5656Android / KMP
cornerRadius · Corner radiusnumber · min 0No1616Android / KMP
fontSize · Font sizenumber · min 1No16—Android / KMP
fontWeight · Font weightselect · medium, semibold, boldNo"medium"—Android / KMP
backgroundColor · Background colorcolorNoNo documented default—Android / KMP
backgroundColorRole · Background roleselect · primary, surfaceNoNo documented default—Android / KMP
textColor · Text colorcolorNoNo documented default—Android / KMP
textColorRole · Text roleselect · onPrimary, textNoNo documented default—Android / KMP

Binding

This static content component has no default binding.

Supported actions

EventAndroidKMP PreviewNotes
onClickYesYesPlace it in screen.floatingActionButton.

Runtime notes

No additional runtime notes are declared. Refer to the contract tables for platform support.

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.

Original detail reference

Documentation evidence

Working-tree baseline · source paths · HEAD 8213e6b7

  • docs-site/lib/builder-components.json
  • shared/contracts/ui-component-catalog.json
  • shared/contracts/ui-component-guidance.json
  • app-electron/src/shared/componentCatalog.mjs
  • app-electron/src/shared/designCapabilities.mjs
  • app-electron/src/shared/screenAuthoring.mjs
  • app-electron/src/main/llm/screenPipeline.ts

References

DTRAC BuilderYonsei University · Bongshin Lee’s research team