Freelancer logo
Introduction Foundations Components Directives Pipes Motion Brand
⌘K

Alerts & notifications

Banner alert Banner announcement Floating action Toast alert

Buttons & actions

Button Link Pull refresh Share buttons Share link Social buttons Split button Toggle buttons

Cards

Card Widget

Forms

Checkbox card Checkbox Currency input File select Input Label Location input Multi select Multiple location input Otp input Phone input Radio Search Select Slider Smart textarea Textarea Timepicker Toggle

Icons / images / media

Animated svg File viewer Gallery mosaic Icon Image cropper

Layouts

Container Grid Page layout Table

Navigation

Breadcrumbs Pagination Tabs

Popups / overlays

Callout Drawer Dropdown filter Highlight Modal More options Tooltip

Progress & loading indicators

Countdown timer Loading template Progress bar Progress steps Spinner

Tags

Tag

Typography

Fonts Hr
Components Forms Toggle

Toggle

Simple toggle switches

Toggle switch can be used to switch between two states or options

Contents

Default Colors Sizes States
Inputs
control : FormControl<boolean>
busy ?: boolean = false
color ?: ToggleColor = ToggleColor.DARK
forListItem ?: boolean = false
label ?: string

Set aria label for accessibility

size ?: ToggleSize = ToggleSize.SMALL
sizeDesktop ?: ToggleSize
sizeTablet ?: ToggleSize