0.7.3 • Published 5 months ago

@urban-ui/tag v0.7.3

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

@urban-ui/tag

Tag component for Urban UI.

Installation

bun add @urban-ui/tag

Usage

import { Tag } from '@urban-ui/tag'

export function Example() {
  return (
    <div>
      <Tag>Default</Tag>
      <Tag variant='accent'>Accent</Tag>
      <Tag variant='positive' size='lg'>Large Positive</Tag>
    </div>
  )
}

API

Tag

A tag component that supports different variants and sizes.

Props

PropTypeDefaultDescription
variant'neutral' | 'accent' | 'positive' | 'warning' | 'danger' | 'info''neutral'Visual style variant
size'sm' | 'md' | 'lg''md'Controls text size and padding
styleStyleXStyles-Additional styles to apply
childrenReactNode-Content to display
0.7.3

5 months ago

0.7.2

5 months ago

0.1.0

5 months ago