[ Web Proxy ]
URL:
Viewing: https://developers.cloudflare.com/realtime/realtimekit/ui-kit/api-reference/ios/rtk-button/ [Back]  [Original]

RtkButton Cloudflare Realtime docsSkip to content
SearchCtrlKLog in
  1. Home
  2. /Realtime
  3. /
  4. /iOS
  5. /RtkButton

RtkButton

Last updated Apr 23, 2026Copy as MarkdownView as MarkdownAgent setup
OverviewInitializer parametersUsage ExamplesBasic UsageWith custom style

A versatile button that follows the RTK Design System. Supports multiple styles, states, and sizes.

Initializer parameters

Parameter Type Required Default Description
style Style .solid The button style (solid, line, icon-left, and others)
rtkButtonState States .active The initial state of the button
size Size .large The size of the button
appearance RtkButtonAppearance - Appearance configuration for colors and fonts

Usage Examples

Basic Usage

import RealtimeKitUI

let button = RtkButton()
button.setTitle("Join", for: .normal)
view.addSubview(button)

With custom style

import RealtimeKitUI

let button = RtkButton(
    style: .line,
    rtkButtonState: .active,
    size: .large
)
button.setTitle("Cancel", for: .normal)
view.addSubview(button)
PreviousRtkAvatarViewNextRtkClockView

Was this helpful?

YesNo
Edit pageReport issue
[]

Web Proxy Viewer  |  New URL  |  Original Page