Skip to content

rtk-switch

Last updated View as MarkdownAgent setup

A switch component which follows RTK Design System.

Properties

Property Type Required Default Description
checked boolean ✅ - Whether the switch is enabled/checked
disabled boolean ✅ - Whether switch is readonly
iconPack IconPack ❌ defaultIconPack Icon pack
readonly boolean ✅ - Whether switch is readonly
t RtkI18n ❌ useLanguage() 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>

Was this helpful?