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

var c=a(({children:p,className:m,disabled:r,readOnly:a,hasError:l=!1,...i},b)=>{let e=checkboxButton();return jsxs("label",{className:cx(e.root,m),"aria-disabled":r,"aria-readonly":a,"data-error":l,children:[jsx("input",{type:"checkbox",ref:b,...i,disabled:r,readOnly:a,className:cx("peer",e.input)}),jsx(a$1,{size:16,className:e.led,"data-led-state":"on",children:jsx(LedOnIcon,{})}),jsx(a$1,{size:16,className:e.led,"data-led-state":"off",children:jsx(LedOutlineIcon,{})}),jsx("span",{children:p})]})});c.displayName="CheckboxButton";

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