Skip to content

RtkMenuItem

Last updated View as MarkdownAgent setup

A pressable menu item within a menu.

Properties

Property Type Required Default Description
children ReactNode - Menu item content
onClick (ev) => {} - Press handler callback
size 'lg' | 'md' | 'sm' | 'xl' - Size variant

Usage Examples

Basic Usage

import { RtkMenuItem } from "@cloudflare/realtimekit-react-native-ui";

function MyComponent() {
	return (
		<RtkMenuItem onClick={() => ({})}>
			<Text>Option 1</Text>
		</RtkMenuItem>
	);
}

With Properties

import { RtkMenuItem } from "@cloudflare/realtimekit-react-native-ui";

function MyComponent() {
	return (
		<RtkMenuItem onClick={(ev) => ({})} size="md">
			<Text>Option 1</Text>
		</RtkMenuItem>
	);
}

Was this helpful?