{"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":"d2b178a5-2c4b-583d-a573-1fb87d30147d","children":[],"parent":"927a429a-cf0c-50d9-b54b-62ff7572bda2","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<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":"e3aebcb7d1fb3db93b50a102df3d902e","counter":1501,"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<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/3f757860/src/pages/components/content-switcher/code.mdx"}}}}