{"componentChunkName":"component---src-pages-components-toggle-code-mdx","path":"/components/toggle/code/","result":{"pageContext":{"frontmatter":{"title":"Toggle","description":"A toggle is a control that is used to quickly switch between two possible states. They are commonly used for “on/off” switches.","tabs":["Code","Usage","Style","Accessibility"]},"relativePagePath":"/components/toggle/code.mdx","titleType":"prepend","MdxNode":{"id":"ac807db6-7957-55de-a627-7d0ec4ef9739","children":[],"parent":"0cd04de6-166e-556b-95a1-0d33f9bd094d","internal":{"content":"---\ntitle: Toggle\ndescription: A toggle is a control that is used to quickly switch between two possible states. They are commonly used for “on/off” switches.\ntabs: ['Code', 'Usage', 'Style', 'Accessibility']\n---\n\n## Toggle\n\n<ComponentDemo\n  links={{\n    React: 'https://react.carbondesignsystem.com/?path=/story/toggle--toggled',\n    Angular:\n      'https://angular.carbondesignsystem.com/?path=/story/components-toggle--basic',\n    Vue:\n      'http://vue.carbondesignsystem.com/?path=/story/components-cvtoggle--default',\n    Vanilla: 'https://the-carbon-components.netlify.com/?nav=toggle',\n  }}>\n  {`\n<Toggle\n  aria-label=\"toggle button\"\n  defaultToggled\n  id=\"toggle-1\"\n  labelText=\"Label text\"\n/>\n  `}\n</ComponentDemo>\n\n## Toggle small\n\n<ComponentDemo\n  links={{\n    React:\n      'https://react.carbondesignsystem.com/?path=/story/togglesmall--toggled',\n    Angular:\n      'https://angular.carbondesignsystem.com/?path=/story/components-toggle--basic',\n    Vue:\n      'http://vue.carbondesignsystem.com/?path=/story/components-cvtoggle--default',\n    Vanilla: 'https://the-carbon-components.netlify.com/?nav=toggle',\n  }}>\n  {`\n<ToggleSmall\n  aria-label=\"toggle button\"\n  defaultToggled\n  id=\"toggle-2\"\n  labelText=\"Label text\"\n/>\n  `}\n</ComponentDemo>\n","type":"Mdx","contentDigest":"1c416110ffb0158ea86e9991b1737f26","counter":1564,"owner":"gatsby-plugin-mdx"},"frontmatter":{"title":"Toggle","description":"A toggle is a control that is used to quickly switch between two possible states. They are commonly used for “on/off” switches.","tabs":["Code","Usage","Style","Accessibility"]},"exports":{},"rawBody":"---\ntitle: Toggle\ndescription: A toggle is a control that is used to quickly switch between two possible states. They are commonly used for “on/off” switches.\ntabs: ['Code', 'Usage', 'Style', 'Accessibility']\n---\n\n## Toggle\n\n<ComponentDemo\n  links={{\n    React: 'https://react.carbondesignsystem.com/?path=/story/toggle--toggled',\n    Angular:\n      'https://angular.carbondesignsystem.com/?path=/story/components-toggle--basic',\n    Vue:\n      'http://vue.carbondesignsystem.com/?path=/story/components-cvtoggle--default',\n    Vanilla: 'https://the-carbon-components.netlify.com/?nav=toggle',\n  }}>\n  {`\n<Toggle\n  aria-label=\"toggle button\"\n  defaultToggled\n  id=\"toggle-1\"\n  labelText=\"Label text\"\n/>\n  `}\n</ComponentDemo>\n\n## Toggle small\n\n<ComponentDemo\n  links={{\n    React:\n      'https://react.carbondesignsystem.com/?path=/story/togglesmall--toggled',\n    Angular:\n      'https://angular.carbondesignsystem.com/?path=/story/components-toggle--basic',\n    Vue:\n      'http://vue.carbondesignsystem.com/?path=/story/components-cvtoggle--default',\n    Vanilla: 'https://the-carbon-components.netlify.com/?nav=toggle',\n  }}>\n  {`\n<ToggleSmall\n  aria-label=\"toggle button\"\n  defaultToggled\n  id=\"toggle-2\"\n  labelText=\"Label text\"\n/>\n  `}\n</ComponentDemo>\n","fileAbsolutePath":"/zeit/26e993f/src/pages/components/toggle/code.mdx"}}}}