d2d8d78be1
This commit moves all of the packages in `plugins/woocommerce-admin/packages` to their new home in `packages/js`. |
||
---|---|---|
.. | ||
stories | ||
README.md | ||
index.js | ||
style.scss |
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 |