Earthling UI

  1. Components
  2. switch

Switch

Prop
Default Value
Value
The material of the switch
material
paper
The color scheme of the switch
scheme
primary

Anatomy

<Switch />

Installation

1
Ensure Earthling UI is installed
bun add earthling-ui
2
Import the component from earthling-ui
import { Switch } from "earthling-ui/switch"
The component is ready to use