UNPKG

sate-lib

Version:

A lightweight and modular React component library designed for modern web interfaces. **SATE Lib** powers the [sate.menu](https://sate.menu) platform with reusable, scalable, and themeable UI components.

1 lines 396 B
import{jsx as e,jsxs as o}from"react/jsx-runtime";import{Icon as i}from"../icon/icon.js";import n from"./badge.styles.module.js";function r({label:r="",variant:a="default",icon:m,iconSize:t=12,className:l="",...s}){let c=!!m&&!r;return o("span",{className:["bodySmallEmphasis",n.badge,n[a],c&&n.iconOnly,l].filter(Boolean).join(" "),...s,children:[m&&e(i,{name:m,size:t}),r]})}export{r as Badge};