Install
Run these in the app, after shadcn-vue init and the Beehexa theme (Button › Code):
npx shadcn-vue@latest add https://beehexa.design/r/button.json
npx shadcn-vue@latest add https://beehexa.design/r/toggle.json
Use
<script setup lang="ts">
import { Pin } from '@lucide/vue'
import { ref } from 'vue'
import { Toggle } from '@/components/ui/toggle'
const pinned = ref(true)
</script>
<template>
<div class="flex items-center gap-(--bh-space-100)">
<Toggle v-model="pinned" variant="outline"><Pin />Pin</Toggle>
<Toggle><Pin />Pin</Toggle>
<Toggle variant="outline" disabled><Pin />Pin</Toggle>
</div>
</template>
Props
| Prop | Values | Notes |
|---|---|---|
v-model (modelValue) |
boolean | On or off |
variant |
default, outline |
Subtle or Default button |
size |
Button sizes | sm, default, lg, icon-sm, icon, icon-lg |
disabled |
boolean |
Built on
Wraps the reka-ui Toggle with the shadcn-vue Toggle API and the Button styles.