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 535 B
import{jsx as o,jsxs as e}from"react/jsx-runtime";import{Icon as t}from"../icon/icon.js";import i from"./button.styles.module.js";import{Noise as n}from"./noise.js";let l={medium:24,small:18,xSmall:16};function m({as:m="button",variant:s="filled",icon:r,disabled:a,size:u="medium",className:c="",...d}){let f=l[u];return e(m,{className:[i.button,i.buttonIcon,i[s],i[`icon-${u}`],a&&i.disabled,c].filter(Boolean).join(" "),disabled:a,...d,children:[o(t,{name:r,size:f}),"filled"===s&&o(n,{className:i.noise})]})}export{m as ButtonIcon};