{"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":"c73bb077-2a63-5f67-a8d0-1fa8311a3a3c","children":[],"parent":"129f3e4f-4828-5209-a7d0-7f3750cd49c0","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  {`\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  {`\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":"9ced7004b8cfe688f18757a2b07c327b","counter":1569,"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  {`\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  {`\n<ToggleSmall\n  aria-label=\"toggle button\"\n  defaultToggled\n  id=\"toggle-2\"\n  labelText=\"Label text\"\n/>\n  `}\n</ComponentDemo>\n","fileAbsolutePath":"/zeit/3b23ef32/src/pages/components/toggle/code.mdx"}}}}