{"repo":"Yummygum/react-flagpack","free":true,"listed":false,"github":"https://github.com/Yummygum/react-flagpack","clone":"git clone https://github.com/Yummygum/react-flagpack.git","description":"Flagpack contains 250+ flag icons to easily use within your code project.","language":"TypeScript","stars":164,"topics":["flagpack","icons","svg","flags","npm","react"],"license":"MIT","category":"ui-components","readme_excerpt":"Flagpack Flagpack contains 250+ flag icons to easily use within your code project. Flagpack is an open source project and available for JavaScript frameworks/libraries React, Vue and Svelte. . Made with love by Yummygum. Graphic showing a list with the flags of Argentina, Croatia, Estonia, Kenia, Netherlands, and Scotland.](https://flagpack.xyz/meta-image.png) View documentation on flagpack.xyz react-flagpack Flagpack for React is created using React v16.8. The Flagpack component has not been tested for compatibility with older versions of React. Installation This package depends on the files being injected into the static folder of the project. React flagpack comes bundled with a CLI that will do this automatically for you, but you have to tell node to execute it. Add the following to the scripts in package.json Note that postinstall sometimes doesn't run with certain package managers, so you may need to run it manually This tool accepts the parameter \"--framework\" which can be used to pass the correct framework to it. The default selected framework supports NextJS, create-react-app, Remix. For Gastby support please provide the --framework gatsby option Usage Defining the component Import the Flagpack component into any of your project's React components. Use in JSX Available component configurations — Props Key Value Required Default Format ------- ------- ------ ------ ------ code String false 'NL' See all codes size String false 'L' 'S', 'M' or 'L' className String false ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Yummygum","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Yummygum/react-flagpack/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}