{"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":"a2364753-e12d-53dc-b23a-cd0df212a4f2","children":[],"parent":"0994736a-a18a-5ebe-ac7b-bd6ec44e4ae5","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":"49578d64515980adb004ab7feec0f5c7","counter":1488,"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/1c2d2ee2/src/pages/components/content-switcher/code.mdx"}}}}