{"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":"e01c9354-c96f-5c92-9c4f-ec246ab638aa","children":[],"parent":"2e641fce-1041-5744-af8d-99d2d21d7a88","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":"cc82abd676cba8a5ad3eb74c4111d43d","counter":1492,"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/767b4790/src/pages/components/content-switcher/code.mdx"}}}}