Actions
Action grid
the row of shortcuts under a screen hero · 3–4 items, one row only, last tile is "More"
function ActionGridDemo() { const [last, setLast] = React.useState('nothing yet'); return ( <View className="w-full gap-3"> <ActionGrid items={[ { icon: PlusIcon, label: 'Add funds', onPress: () => setLast('Add funds') }, { icon: FileTextIcon, label: 'Pay a bill', onPress: () => setLast('Pay a bill') }, { icon: ArrowUpRightIcon, label: 'Send', onPress: () => setLast('Send') }, { icon: EllipsisIcon, label: 'More', badge: true, onPress: () => setLast('More') }, ]} /> <Text className="text-muted-foreground text-sm">Tapped: {last}</Text> </View> );}Usage
The row of shortcuts under a screen hero. Keep it to one row — the last tile should be "More", not a second row.
API
<ActionGrid items={[{icon,label,onPress,badge?}]} />Get it
Already in every copy of the native kit:
import { ActionGrid } from '@/components/kit/action-grid';Details
- Exports
ActionGrid- Packages
- lucide-react-native@^1.21.0
- Installs with
- @halftone-native/icon, @halftone-native/lib-haptics, @halftone-native/lib-utils, @halftone-native/text
- Also searched as
- quick actions, shortcuts, tiles, icon buttons
- Registry JSON
- /r/native/action-grid.json
<ActionGrid className="w-full max-w-sm" items={[ { icon: PlusIcon, label: 'Add funds', onClick: () => toast('Add funds') }, { icon: SendIcon, label: 'Send', onClick: () => toast('Send') }, { icon: ReceiptIcon, label: 'Invoices', badge: 2, onClick: () => toast('Invoices') }, { icon: MoreHorizontalIcon, label: 'More', onClick: () => toast('More') }, ]}/>Usage
The row of shortcuts under a hero. Keep it to one row: the last tile should be "More", not a second row.
API
<ActionGrid items={[{icon,label,onClick|href,badge?}]} />Get it
Already in every copy of the web kit:
import { ActionGrid } from '@/components/kit/action-grid';Details
- Exports
ActionGrid- Packages
- cn@^0.5.2, lucide-react@^1.52.0
- Installs with
- @halftone-web/lib-link
- Also searched as
- quick actions, shortcuts, tiles, icon buttons
- Registry JSON
- /r/web/action-grid.json
Agents: the whole registry is at /llms.txt.