Files
ui/docs/content/2.elements/2.badge.md
Benjamin Canac 31d571abb5 docs: migrate to @nuxthq/ui-kit (#405)
Co-authored-by: Sébastien Chopin <seb@nuxt.com>
2023-07-17 14:49:50 +02:00

771 B

description, links
description links
Display a short text to represent a status or a category.
label icon to
GitHub i-simple-icons-github https://github.com/nuxtlabs/ui/blob/dev/src/runtime/components/elements/Badge.vue

Usage

Use the default slot to set the text of the Badge.

::component-card

code: Badge

Badge ::

You can also use the label prop:

::component-card

props: label: Badge

::

Style

Use the color and variant props to change the visual style of the Badge.

::component-card

props: color: 'primary' variant: 'solid'

Badge ::

Size

Use the size prop to change the size of the Badge.

::component-card

props: size: 'sm'

Badge ::

Props

:component-props

Preset

:component-preset