v2.1.8
  • Get Started
  • Components
  • Composables
  • Typography
  • GitHub
  • Overview
  • Introduction
  • Headers and text
  • Lists and tables
  • Images and embeds
  • Code
  • Components
  • Accordion
  • Badge
  • Callout
  • Card
  • CardGroup
  • CodeCollapse
  • CodeGroup
  • CodePreview
  • Collapsible
  • Field
  • FieldGroup
  • Kbd
  • Steps
  • Tabs
  • b24icons
  • b24jssdk
Use our Nuxt starter
v2.1.8
  • Docs
  • Components
  • Composables
  • Typography

Badge

Present versioning information, status labels, and relevant tags within your material.
GitHub
Nuxt UI

Usage

Use markdown in the default slot of the badge component to display a Badge in your content.

v4.0.0
::badge
**v4.0.0**
::

API

Slots

Slot Type
default{}

Theme

app.config.ts
export default defineAppConfig({
  b24ui: {
    prose: {
      badge: {
        base: 'rounded-full'
      }
    }
  }
})
vite.config.ts
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import bitrix24UIPluginVite from '@bitrix24/b24ui-nuxt/vite'

export default defineConfig({
  plugins: [
    vue(),
    bitrix24UIPluginVite({
      b24ui: {
        prose: {
          badge: {
            base: 'rounded-full'
          }
        }
      }
    })
  ]
})

Accordion

Add interactive toggles for a more structured content presentation.

Callout

Organize critical content for easy scanning with colored panels and intuitive symbols.

On this page

  • Usage
  • API
    • Slots
  • Theme
Releases
Published under MIT License.

Copyright © 2024-present Bitrix24