Skip to content

rtk-switch

A switch component which follows RTK Design System.

Properties

PropertyTypeRequiredDefaultDescription
checkedboolean✅-Whether the switch is enabled/checked
disabledboolean✅-Whether switch is readonly
iconPackIconPack❌defaultIconPackIcon pack
readonlyboolean✅-Whether switch is readonly
tRtkI18n❌useLanguage()Language

Usage Examples

Basic Usage

<rtk-switch></rtk-switch>

With Properties

<rtk-switch>
</rtk-switch>
<script>
const el = document.querySelector("rtk-switch");
el.checked= true;
el.disabled= true;
el.readonly= true;
</script>