Bosia Bosia Bosia v0.6.6
ID

Start Here

  • Introduction
  • Getting Started
  • Project Structure

Guides

  • Routing
  • Navigation
  • Server Loaders
  • Request Deduplication
  • Server Metadata
  • API Routes
  • Form Actions
  • Middleware Hooks
  • Environment Variables
  • Styling
  • Security
  • Testing
  • Plugins
  • File Upload

Components

  • Overview
  • UI
    • Aspect Ratio
    • Accordion
    • Alert
    • Alert Dialog
    • Avatar
    • Badge
    • Breadcrumb
    • Button
    • Button Group
    • Calendar
    • Card
    • Carousel
    • Checkbox
    • Chart
    • Collapsible
    • Command
    • Combobox
    • Context Menu
    • Data Table
    • Date Picker
    • Direction
    • Dialog
    • Dropdown Menu
    • Empty
    • Field
    • Form
    • Hover Card
    • Icon
    • Input
    • Input Group
    • Input OTP
    • Item
    • Kbd
    • Label
    • Menubar
    • Navbar
    • Native Select
    • Navigation Menu
    • Pagination
    • Popover
    • Progress
    • Radio Group
    • Range Calendar
    • Resizable
    • Scroll Area
    • Select
    • Separator
    • Sidebar
    • Skeleton
    • Slider
    • Sonner
    • Spinner
    • Switch
    • Table
    • Tabs
    • Textarea
    • Toggle
    • Toggle Group
    • Tooltip
    • Typography
  • Todo
    • Todo Form
    • Todo Item
    • Todo List

Blocks

  • Overview
  • Cards
    • Feature (Editorial)
  • Files
    • Crop Image
    • Upload Area

Themes

  • Overview
  • Neutral
  • Editorial
  • Creating Themes

Reference

  • CLI
  • API Reference
  • Deployment
  • SvelteKit Differences
  • Roadmap
  • Changelog

Badge

A small status badge with multiple variants.

bun x bosia@latest add badge

A small status label with variant styling.

Preview

Default
Secondary
Destructive
Outline

Props

Prop Type Default
variant "default" | "secondary" | "destructive" | "outline" "default"

Usage

<script lang="ts">
	import { Badge } from "$lib/components/ui/badge";
</script>

<Badge>Active</Badge>
<Badge variant="secondary">Pending</Badge>
<Badge variant="destructive">Error</Badge>
<Badge variant="outline">Draft</Badge>

On this page

  • Preview
  • Props
  • Usage