{"version":3,"file":"Button.D0YXvcC1.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/8IweeJso61UezaiL2NhI/VNRXoLzz0FinJNByJIWh/Button.js"],"sourcesContent":["// Welcome to Code in Framer\n// Get Started: https://www.framer.com/developers/\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/#code-components-auto-sizing\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function Button({color,text,borderRadiusHover,borderRadius,padding,backgroundColor,icon,iconStyle,fontSize,onClick}){const{top,left,bottom,right}=padding!==null&&padding!==void 0?padding:{};const[isHover,setIsHover]=useState(false);// This is a React component containing an Example component\n// - Replace <Example /> with your own code\n// - Find inspiration: https://www.framer.com/developers/\nconst onHover=()=>{setIsHover(true);};const onLeave=()=>{setIsHover(false);};return /*#__PURE__*/_jsxs(\"button\",{onMouseEnter:onHover,onMouseLeave:onLeave,style:{border:\"none\",padding:`${top}px ${left}px ${bottom}px ${right}px`,outline:\"none\",textTransform:\"uppercase\",background:backgroundColor,color:color,fontSize:`${fontSize}px`,lineHeight:\"18px\",fontWeight:500,transition:\"all .3s ease-in-out\",borderRadius:isHover?`${borderRadiusHover}px`:`${borderRadius}px`,cursor:\"pointer\",fontFamily:\"Inter, Inter Placeholder, sans-serif\",letterSpacing:\"0.1em\",display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\"},onClick:onClick,children:[text,icon&&/*#__PURE__*/_jsx(\"div\",{children:/*#__PURE__*/_jsx(\"img\",{style:{...iconStyle},...icon})})]});}addPropertyControls(Button,{text:{type:ControlType.String,defaultValue:\"\"},color:{type:ControlType.Color,defaultValue:\"#fff\"},backgroundColor:{type:ControlType.Color,defaultValue:\"#0049FF\"},borderRadius:{type:ControlType.Number,defaultValue:0},borderRadiusHover:{type:ControlType.Number,defaultValue:30},padding:{type:ControlType.Object,controls:{top:{type:ControlType.Number,defaultValue:15},left:{type:ControlType.Number,defaultValue:20},right:{type:ControlType.Number,defaultValue:15},bottom:{type:ControlType.Number,defaultValue:20}}},icon:{type:ControlType.ResponsiveImage},iconStyle:{type:ControlType.Object,controls:{width:{type:ControlType.Number,defaultValue:10},height:{type:ControlType.Number,defaultValue:10},marginLeft:{type:ControlType.Number,defaultValue:8}}},fontSize:{type:ControlType.Number,defaultValue:12}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Button\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Button.map"],"mappings":"iLAQG,SAAwB,EAAO,CAAC,QAAM,OAAK,oBAAkB,eAAa,UAAQ,kBAAgB,OAAK,YAAU,WAAS,WAAS,CAAC,GAAK,CAAC,MAAI,OAAK,SAAO,SAAO,GAAyC,EAAE,CAAM,CAAC,EAAQ,GAAYA,EAAS,GAAM,CAG5K,OAAoB,EAAM,SAAS,CAAC,iBAA/F,CAAC,EAAW,GAAK,EAAmG,iBAA9E,CAAC,EAAW,GAAM,EAAiF,MAAM,CAAC,OAAO,OAAO,QAAQ,GAAG,EAAI,KAAK,EAAK,KAAK,EAAO,KAAK,EAAM,IAAI,QAAQ,OAAO,cAAc,YAAY,WAAW,EAAsB,QAAM,SAAS,GAAG,EAAS,IAAI,WAAW,OAAO,WAAW,IAAI,WAAW,sBAAsB,aAAa,EAAQ,GAAG,EAAkB,IAAI,GAAG,EAAa,IAAI,OAAO,UAAU,WAAW,uCAAuC,cAAc,QAAQ,QAAQ,cAAc,WAAW,SAAS,eAAe,SAAS,CAAS,UAAQ,SAAS,CAAC,EAAK,GAAmB,EAAK,MAAM,CAAC,SAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAU,CAAC,GAAG,EAAK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