A button that follows RTK Design System.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
disabled |
boolean |
✅ | - | Where the button is disabled or not |
kind |
ButtonKind |
✅ | - | Button type |
reverse |
boolean |
✅ | - | Whether to reverse order of children |
size |
Size |
✅ | - | Size |
type |
HTMLButtonElement['type'] |
✅ | - | Button type |
variant |
ButtonVariant |
✅ | - | Button variant |
import { RtkButton } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return <RtkButton />;
}import { RtkButton } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return (
<RtkButton
disabled={true}
kind={buttonkind}
reverse={true}
/>
);
}