import { a as a$1 } from './chunk-BZFPT54B.js';
import { a } from './chunk-TWGPE4V7.js';
import { cx } from '@onbeam/styled-system/css';
import { DownIcon } from '@onbeam/icons';
import { selectButton } from '@onbeam/styled-system/recipes';
import { jsxs, jsx } from 'react/jsx-runtime';

var c=a(({as:n="button",children:m,className:p,label:l,disableChevron:u=!1,icon:e,disabled:f=!1,...i},B)=>{let t=selectButton();return jsxs("div",{className:cx(t.root,p),children:[l,jsxs(n,{ref:B,className:t.button,"data-has-icon":!!e,disabled:f,...n==="button"&&{type:"button"},...i,children:[e&&jsx(a$1,{size:24,className:t.icon,children:e}),jsx("span",{className:t.content,children:m}),!u&&jsx(DownIcon,{className:t.chevron,height:16,width:16})]})]})});c.displayName="SelectButton";

export { c as a };
//# sourceMappingURL=out.js.map
//# sourceMappingURL=chunk-MYWYANOV.js.map