Actions

Menu

A list of actions that drops down from a label.

iOSSwiftUI MenuAndroidCompose DropdownMenuRenders in a Screen or an Island
iOSSwiftUI Menu
AndroidCompose DropdownMenu

Import

ts
import {Menu, type MenuAction} from '@hzblj/kara-ui'

Props

A text button that opens a list of actions: a SwiftUI Menu on iOS, a Material dropdown anchored to it on Android. A native atom — it renders inside <Screen> or <Island>.

PropTypeDescription
actions*MenuAction[]

The menu's actions, top to bottom.

label*string

The trigger's text. Android draws it in the accent colour, with a chevron.

actions*
MenuAction[]

The menu's actions, top to bottom.

label*
string

The trigger's text. Android draws it in the accent colour, with a chevron.

Platform notes

  • iOS does not draw an action’s icon in the menu; Android does.