Skip to content
Cloudflare Docs

rtk-switch

A switch component which follows RTK Design System.

Properties

PropertyTypeRequiredDefaultDescription
checkedboolean-Whether the switch is enabled/checked
disabledboolean-Whether switch is readonly
iconPackIconPackdefaultIconPackIcon pack
readonlyboolean-Whether switch is readonly
tRtkI18nuseLanguage()Language

Usage Examples

Basic Usage

<!-- component.html -->
<rtk-switch></rtk-switch>

With Properties

<!-- component.html -->
<rtk-switch
[checked]="true"
[disabled]="true"
[readonly]="true">
</rtk-switch>