v4.0.0-beta.4

Theme Toggle

<BaseTheme* /> · A theme switching component.

vue
<template>
  <BaseThemeToggle />
  <BaseThemeSwitch />
  <BaseThemeSystem />
</template>

Features

  • Full keyboard navigation
  • Can be controlled or uncontrolled

Anatomy

This is a self closing component that can be used to switch between different themes.

vue
<template>
  <BaseThemeToggle />
</template>

API Reference

This component has props that you can use to modify its visual style.

Theme Toggle

Prop Type
id
default:-
string

The form input identifier.

transitions
default:false
boolean

Enables transitions when toggling between light and dark mode.

variant
default:"default"
"default"

The variant of the toggle.

Theme Switch

Prop Type
id
default:-
string

The form input identifier.

transitions
default:false
boolean

Enables transitions when toggling between light and dark mode.

variant
default:"default"
"default"

The variant of the Switch.

Theme System

Prop Type
id
default:-
string

The form input identifier.

transitions
default:false
boolean

Enables transitions when toggling between light and dark mode.

variant
default:"default"
"default"

The variant of the toggle.