{"componentChunkName":"component---src-pages-components-content-switcher-code-mdx","path":"/components/content-switcher/code/","result":{"pageContext":{"frontmatter":{"title":"Content switcher","description":"Content switchers manipulate the content shown following an exclusive or “either/or” pattern. It is used to toggle between two or more content sections within the same space on screen.","tabs":["Code","Usage","Style","Accessibility"]},"relativePagePath":"/components/content-switcher/code.mdx","titleType":"prepend","MdxNode":{"id":"cd8008a9-b5d9-56fe-b18c-6f2d6e1b9a7e","children":[],"parent":"afa6e430-31c0-5e4d-aead-5c0a7a828607","internal":{"content":"---\ntitle: Content switcher\ndescription: Content switchers manipulate the content shown following an exclusive or “either/or” pattern. It is used to toggle between two or more content sections within the same space on screen.\ntabs: [\"Code\", \"Usage\", \"Style\", \"Accessibility\"]\n---\n\n<ComponentDemo\n  links={{\n    React:\n      \"http://react.carbondesignsystem.com/?path=/story/contentswitcher--default\",\n    Angular:\n      \"https://angular.carbondesignsystem.com/?path=/story/components-content-switcher--basic\",\n    Vue:\n      \"http://vue.carbondesignsystem.com/?path=/story/components-cvcontentswitcher--default\",\n    Vanilla: \"https://the-carbon-components.netlify.com/?nav=content-switcher\",\n  }}\n>{`\n<ContentSwitcher onChange={console.log}>\n  <Switch name={'first'} text='First section' />\n  <Switch name={'second'} text='Second section' />\n  <Switch name={'third'} text='Third section' />\n</ContentSwitcher>\n`}</ComponentDemo>\n","type":"Mdx","contentDigest":"ee63efc99f36555f456f86bfb0b474a1","counter":1470,"owner":"gatsby-plugin-mdx"},"frontmatter":{"title":"Content switcher","description":"Content switchers manipulate the content shown following an exclusive or “either/or” pattern. It is used to toggle between two or more content sections within the same space on screen.","tabs":["Code","Usage","Style","Accessibility"]},"exports":{},"rawBody":"---\ntitle: Content switcher\ndescription: Content switchers manipulate the content shown following an exclusive or “either/or” pattern. It is used to toggle between two or more content sections within the same space on screen.\ntabs: [\"Code\", \"Usage\", \"Style\", \"Accessibility\"]\n---\n\n<ComponentDemo\n  links={{\n    React:\n      \"http://react.carbondesignsystem.com/?path=/story/contentswitcher--default\",\n    Angular:\n      \"https://angular.carbondesignsystem.com/?path=/story/components-content-switcher--basic\",\n    Vue:\n      \"http://vue.carbondesignsystem.com/?path=/story/components-cvcontentswitcher--default\",\n    Vanilla: \"https://the-carbon-components.netlify.com/?nav=content-switcher\",\n  }}\n>{`\n<ContentSwitcher onChange={console.log}>\n  <Switch name={'first'} text='First section' />\n  <Switch name={'second'} text='Second section' />\n  <Switch name={'third'} text='Third section' />\n</ContentSwitcher>\n`}</ComponentDemo>\n","fileAbsolutePath":"/zeit/3b23ef32/src/pages/components/content-switcher/code.mdx"}}}}