UNPKG

klioso

Version:

Multi-Service Provider Management System for WordPress and Web Development with Enhanced Scanner

2 lines (1 loc) 910 B
import{j as s}from"./app-DZ07njAd.js";function l({as:o="button",children:n,icon:r,loading:e=!1,disabled:t=!1,size:a="md",variant:u="primary",className:x="",...g}){const i="inline-flex items-center justify-center font-medium rounded transition focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",b={sm:"px-2 py-1 text-xs",md:"px-4 py-2 text-sm",lg:"px-6 py-3 text-base"},c={primary:t||e?"bg-blue-300 text-white cursor-not-allowed":"bg-blue-600 text-white hover:bg-blue-700",outline:t||e?"border border-gray-300 bg-gray-100 text-gray-400 cursor-not-allowed":"border border-gray-300 bg-white text-gray-700 hover:bg-gray-50",ghost:t||e?"text-gray-400 cursor-not-allowed":"text-gray-600 hover:text-gray-900 hover:bg-gray-100"};return s.jsxs(o,{className:`${i} ${b[a]} ${c[u]} ${x}`,disabled:t||e,...g,children:[r&&s.jsx("span",{className:"mr-2",children:r}),e?"Loading...":n]})}export{l as B};