Getting Started

Components

Themes

Please understand this website is built in react, the components are in react native. There may be slight differences!

Toggle

Toggle button(like B, I in MS Word, Google doc)

1
Install by running this command!
npx uni-ui-kit install toggle
2
Import the component!
import Toggle from '../lib/ui/Toggle';
Properties table
description
string
Description of the toggle
disabled?
boolean
Disabled or not
defaultToggled?
boolean
Default value
onToggle?
(toggled)=>void
Callback function when it is toggled
variant?
variant
Variant of the toggle
Library data types
Variants
primary, secondary, tertiary, success, warning, error, ghost
Colors will change according to theme(light, dark). Use when it is intended.