woocommerce/packages/js/components/src/flag
Christopher Allford d2d8d78be1 Moved WCA Packages
This commit moves all of the packages in
`plugins/woocommerce-admin/packages` to their
new home in `packages/js`.
2022-03-18 14:25:26 -07:00
..
stories Moved WCA Packages 2022-03-18 14:25:26 -07:00
README.md Moved WCA Packages 2022-03-18 14:25:26 -07:00
index.js Moved WCA Packages 2022-03-18 14:25:26 -07:00
style.scss Moved WCA Packages 2022-03-18 14:25:26 -07:00

README.md

Flag

Use the Flag component to display a country's flag using the operating system's emojis.

React component.

Usage

<Flag code="VU" size={ 48 } />

Props

Name Type Default Description
code String null Two letter, three letter or three digit country code
order Object null An order can be passed instead of code and the code will automatically be pulled from the billing or shipping data
className String null Additional CSS classes
size Number null Supply a font size to be applied to the emoji flag