Skip to content

RtkButton

A general-purpose button component with multiple variants and sizes.

Properties

PropertyTypeRequiredDefaultDescription
childrenReactNode-Button content/label
onClickany-Press handler callback
kind'button' | 'icon' | 'wide''button'Button kind
variant'danger' | 'ghost' | 'primary' | 'secondary'-Visual style variant
size'lg' | 'md' | 'sm' | 'xl'-Button size
reversebooleanfalseReverse the button content order
disabledboolean-Whether the button is disabled
styleStyleProp<any>-Custom React Native styles

Usage Examples

Basic Usage

import { RtkButton } from "@cloudflare/realtimekit-react-native-ui";
function MyComponent() {
return <RtkButton onClick={() => console.log("pressed")}>Press Me</RtkButton>;
}

With Properties

import { RtkButton } from "@cloudflare/realtimekit-react-native-ui";
function MyComponent() {
return (
<RtkButton
onClick={() => console.log("pressed")}
variant="primary"
size="md"
kind="wide"
>
Join Meeting
</RtkButton>
);
}