{"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":"d4ea7941-c596-5738-8536-f51d637017cc","children":[],"parent":"079df36f-da4a-5777-aa3c-bfac96b3138a","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":"bd6b2c945ec0fbd8ae97a91eb203bb7e","counter":1489,"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/512c25b6/src/pages/components/content-switcher/code.mdx"}}}}