"use strict";(self.webpackChunk_pfct_purple=self.webpackChunk_pfct_purple||[]).push([[5627],{"./src/components/Control/Switch/index.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Story1:function(){return Story1},__namedExportsOrder:function(){return __namedExportsOrder}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),___WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/components/Control/Switch/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/jsx-runtime.js");const meta={title:"Component/Control/Switch",component:___WEBPACK_IMPORTED_MODULE_1__.r,tags:["autodocs"],parameters:{docs:{description:{component:'updated 230523\n\n<a href="https://www.notion.so/Control-462646debf424154a108e1931f16c034?pvs=4" target="_blank">노션페이지</a>\n<br/>\n한 가지 옵션을 켜고 끌 수 있는 컨트롤입니다.'}}}};__webpack_exports__.default=meta;const Component=props=>{const[value,setValue]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(___WEBPACK_IMPORTED_MODULE_1__.r,{...props,value:value,onChange:setValue})};Component.displayName="Component";const Story1={render:props=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Component,{...props}),args:{colorType:"blue"},argTypes:{onChange:{action:"onChange"}},storyName:"스위치"};Story1.parameters={...Story1.parameters,docs:{...Story1.parameters?.docs,source:{originalSource:"{\n  render: props => <Component {...props} />,\n  args: {\n    colorType: 'blue'\n  },\n  argTypes: {\n    onChange: {\n      action: 'onChange'\n    }\n  }\n}",...Story1.parameters?.docs?.source}}};const __namedExportsOrder=["Story1"]}}]);