Skip to content

Badge

State belongs to the parent. Compose this component with the props and slots below.

Preview

Open in the playground

Usage

BadgeExample.vueVue / TS
<script setup lang="ts">
import { FzBadge } from '@chrisdalbano/forza-ui'
</script>

<template>
  <FzBadge tone="positive">Ready</FzBadge>
</template>
TypeScript exampleSource you can use.

Import the shared stylesheet once and wrap your app in .fz-theme. See installation.

Props

NameTypeRequiredDefault
tone"warning" | "neutral" | "positive" | "accent" | undefinedNo"neutral"

Events and state

presentational

Slots

default

Add from source

sh
forza add badge

Set up the CLI first. Generated API tables come from the Vue source, using Vue Language Tools.

Released under the MIT License. Independent work.