{"version":3,"sources":["webpack:///./src/components/Callout.js","webpack:///./src/components/BrowserGlobalsCodeBlock.js","webpack:///./src/components/CssCodeBlock.js","webpack:///./src/components/DocLink.js","webpack:///./src/pages/getting-started/introduction.mdx"],"names":["styles","require","Callout","title","children","theme","role","className","BrowserGlobalsCodeBlock","CodeBlock","mode","codeText","config","bootstrapVersion","cssHash","CssCodeBlock","DocLink","path","href","_frontmatter","layoutProps","MDXLayout","DefaultLayout","MDXContent","components","props","mdxType","parentName","isMDXComponent"],"mappings":"4FACA,yBAIMA,EAASC,EAAQ,QAmBRC,IAXf,YAA8C,IAA3BC,EAA0B,EAA1BA,MAAOC,EAAmB,EAAnBA,SAAUC,EAAS,EAATA,MAClC,OACE,2BAAOC,KAAK,OAAOC,UAAWP,EAAOK,GAAS,YAC3CF,GAAS,4BAAQI,UAAU,MAAMJ,GAClC,6BAAMC,M,oKCcGI,MA1Bf,WACE,OACE,kBAACC,EAAA,QAAD,CACEC,KAAK,OACLC,SAAQ,gW,ECJwBC,yLAA9BC,E,EAAAA,iBAAkBC,E,EAAAA,QAmBXC,MAlBf,WACE,OACE,kBAACN,EAAA,QAAD,CACEC,KAAK,OACLC,SAAQ,kFAGsCE,EAHtC,yCAICC,EAJD,wCCJCE,MAJf,YAAsC,IAAnBC,EAAkB,EAAlBA,KAAMb,EAAY,EAAZA,SACvB,OAAO,uBAAGc,KAASN,oCAAiBK,GAASb,I,iFCOxC,IAAMe,EAAe,GAOtBC,EAAc,CAClBD,gBAEIE,EAAYC,IACH,SAASC,EAAT,GAGZ,IAFDC,EAEC,EAFDA,WACGC,E,oIACF,mBACD,OAAO,cAACJ,EAAD,iBAAeD,EAAiBK,EAAhC,CAAuCD,WAAYA,EAAYE,QAAQ,cAI5E,mBAAQ,CACN,GAAM,gBADR,gBAGA,mBAAGnB,UAAU,QAAb,wDACA,mBAAQ,CACN,GAAM,gBADR,gBAGA,qHACmB,4BAAYoB,WAAW,KAAvB,OADnB,QAC2E,4BAAYA,WAAW,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,MASJH,EAAWK,gBAAiB","file":"component---src-pages-getting-started-introduction-mdx-8ff4b5dc3dc2f7e07feb.js","sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\n\n\nconst styles = require('./Callout-styles.module.scss');\n\nconst propTypes = {\n title: PropTypes.node,\n children: PropTypes.node,\n theme: PropTypes.oneOf(['danger', 'warning']),\n};\n\nfunction Callout({ title, children, theme }) {\n return (\n \n );\n}\n\nCallout.propTypes = propTypes;\n\nexport default Callout;\n","import React from 'react';\nimport CodeBlock from './CodeBlock';\n\nconst propTypes = {};\n\nfunction BrowserGlobalsCodeBlock() {\n return (\n \n\n\n\n\n\n\n\n`}\n />\n );\n}\n\nBrowserGlobalsCodeBlock.propTypes = propTypes;\n\nexport default BrowserGlobalsCodeBlock;\n","import React from 'react';\nimport CodeBlock from './CodeBlock';\n\nconst propTypes = {};\n\nconst { bootstrapVersion, cssHash } = config;\nfunction CssCodeBlock() {\n return (\n \n`}\n />\n );\n}\n\nCssCodeBlock.propTypes = propTypes;\n\nexport default CssCodeBlock;\n","import React from 'react';\n\nfunction DocLink({ path, children }) {\n return {children};\n}\n\nexport default DocLink;\n","import React from 'react'\n /* @jsx mdx */\nimport { mdx } from '@mdx-js/react';\n/* @jsx mdx */\n\nimport DefaultLayout from \"/opt/build/repo/www/src/layouts/ApiLayout.js\";\nimport Callout from '../../components/Callout';\nimport BrowserGlobalsCodeBlock from '../../components/BrowserGlobalsCodeBlock';\nimport CssCodeBlock from '../../components/CssCodeBlock';\nimport DocLink from '../../components/DocLink';\nexport const _frontmatter = {};\n\nconst makeShortcode = name => function MDXDefaultShortcode(props) {\n console.warn(\"Component \" + name + \" was not imported, exported, or provided by MDXProvider as global scope\");\n return
;\n};\n\nconst layoutProps = {\n _frontmatter\n};\nconst MDXLayout = DefaultLayout;\nexport default function MDXContent({\n components,\n ...props\n}) {\n return \n\n\n\n

{`Introduction`}

\n

Learn how to include React Bootstrap in your project

\n

{`Installation`}

\n

{`The best way to consume React-Bootstrap is via the npm package which\nyou can install with `}{`npm`}{` (or `}{`yarn`}{` if you prefer).`}

\n

{`If you plan on customizing the Bootstrap Sass files, or don't want\nto use a CDN for the stylesheet, it may be helpful to\ninstall `}{`vanilla Bootstrap`}{` as well.`}

\n
{`npm install react-bootstrap bootstrap\n`}
\n

{`Stylesheets`}

\n

{`Because React-Bootstrap doesn't depend on a very precise version of\nBootstrap, we don't ship with any included css. However, some\nstylesheet `}{`is required`}{` to use these components. `}

\n
{`{/* The following line can be included in your src/index.js or App.js file*/}\n\nimport 'bootstrap/dist/css/bootstrap.min.css';\n`}
\n

{`How and which Bootstrap styles you include is up to you, but the\nsimplest way is to include the latest styles from the CDN. A little\nmore information about the benefits of using a CDN can be found\n`}{`here`}{`.`}

\n \n

{`For more advanced use cases you can also use a bundler like Webpack\nor Browserify to include the CSS files for you as part of your build\nprocess but that is beyond the scope of this guide. Also see\n`}{`the Bootstrap docs`}{`\nfor details about customizing stylesheets to match your component\nuse.`}

\n

{`Importing`}

\n

{`You should import individual components like:\n`}{`react-bootstrap/Button`}{` rather than the entire library.\nDoing so pulls in only the specific components that you use, which\ncan significantly reduce the amount of code you end up sending to\nthe client.`}

\n
{`import Button from 'react-bootstrap/Button';\n\n// or less ideally\nimport { Button } from 'react-bootstrap';\n`}
\n

{`Browser globals`}

\n

{`We provide `}{`react-bootstrap.js`}{` and\n`}{`react-bootstrap.min.js`}{` bundles with all components\nexported on the `}{`window.ReactBootstrap`}{` object. These\nbundles are available on `}{`unpkg`}{`, as\nwell as in the npm package.`}

\n \n

{`Examples`}

\n

{`React-Bootstrap has started a repo with a few basic CodeSandbox examples.\n`}{`Click here`}{`\nto check them out.`}

\n

{`Themes`}

\n

{`React-Bootstrap is compatible with existing Bootstrap themes. Just\nfollow the installation instructions for your theme of choice.`}

\n \n Because React-Bootstrap completely reimplements Bootstrap's JavaScript, it's\n not automatically compatible with themes that extend the default JavaScript\n behaviors.\n \n \n

{`If you would like to add a custom theme on your app using Create React\nApp, they have additional documentation for Create React App and\nBootstrap\n`}{`here`}

\n
\n

{`Browser support`}

\n

{`We aim to support all browsers supported by both\n`}{`React`}{`\nand `}{`Bootstrap`}{`.`}

\n\n
;\n}\n;\nMDXContent.isMDXComponent = true;\n "],"sourceRoot":""}