Components
ContextMenu
A context menu component that displays a list of actions when triggered. Features smart positioning, smooth animations, and customizable menu items with support for icons and subtitles.

Usage
Features
- Smart Positioning: Automatically positions the menu based on available screen space
- Smooth Animations: Enter and exit animations with configurable timing
- Flexible Trigger: Any component can trigger the context menu
- Rich Menu Items: Support for labels, subtitles, left and right icons
- Multiple Anchor Positions: Position menu relative to trigger (top/bottom + left/center/right)
- Keyboard Dismissal: Automatically dismisses keyboard when opened
- Overlay Protection: Tap outside to close functionality
Props
Prop | Type | Default |
---|---|---|
items | ContextMenuItem[] | - |
trigger | (onPress: () => void) => ReactElement<unknown, string | JSXElementConstructor<any>> | - |
menuAnchorPosition? | MenuAnchorPosition | - |
offset? | { x: number; y: number; } | - |
ContextMenuItem
Prop | Type | Default |
---|---|---|
id | string | - |
label | string | - |
subtitle? | string | - |
itemLeft? | ReactElement<unknown, string | JSXElementConstructor<any>> | - |
itemRight? | ReactElement<unknown, string | JSXElementConstructor<any>> | - |
onPress | () => void | - |
Checkbox
A checkbox component that allows users to select one or more options from a list. It displays as a square box with a checkmark or a cross to indicate the selected state.
Counter
A counter component that allows users to increment or decrement a value. It displays the current value and provides buttons for incrementing and decrementing.