2018-08-31 20:13:20 +00:00
|
|
|
`Flag` (component)
|
|
|
|
==================
|
|
|
|
|
2019-01-30 18:51:03 +00:00
|
|
|
Use the `Flag` component to display a country's flag using the operating system's emojis.
|
2018-08-31 20:13:20 +00:00
|
|
|
|
2019-01-30 18:51:03 +00:00
|
|
|
React component.
|
2018-08-31 20:13:20 +00:00
|
|
|
|
|
|
|
Props
|
|
|
|
-----
|
|
|
|
|
|
|
|
### `code`
|
|
|
|
|
|
|
|
- Type: String
|
|
|
|
- Default: null
|
|
|
|
|
|
|
|
Two letter, three letter or three digit country code.
|
|
|
|
|
|
|
|
### `order`
|
|
|
|
|
|
|
|
- Type: Object
|
|
|
|
- Default: null
|
|
|
|
|
|
|
|
An order can be passed instead of `code` and the code will automatically be pulled from the billing or shipping data.
|
|
|
|
|
2019-01-30 18:51:03 +00:00
|
|
|
### `className`
|
2018-08-31 20:13:20 +00:00
|
|
|
|
2019-01-30 18:51:03 +00:00
|
|
|
- Type: String
|
|
|
|
- Default: null
|
2018-08-31 20:13:20 +00:00
|
|
|
|
2019-01-30 18:51:03 +00:00
|
|
|
Additional CSS classes.
|
2018-08-31 20:13:20 +00:00
|
|
|
|
2019-01-30 18:51:03 +00:00
|
|
|
### `size`
|
2018-08-31 20:13:20 +00:00
|
|
|
|
|
|
|
- Type: Number
|
|
|
|
- Default: null
|
|
|
|
|
2019-01-30 18:51:03 +00:00
|
|
|
Supply a font size to be applied to the emoji flag.
|
2018-08-31 20:13:20 +00:00
|
|
|
|