CaFlag
This component can display a flag based on the ISO 3166-1-alpha-2 code for the country. Takes flags from the static folder of the main project. Build for, and recommend using with, flags from [flag-icon-css] (https://github.com/lipis/flag-icon-css)
SASS-path: ./styles/components/atoms/ca-flag.scss
Props
Name | Description | Type | Required | Default |
---|---|---|---|---|
country | The ISO 3166-1-alpha-2 code for the country | String | true | - |
shape | Set the flags shape | 'default', 'square', 'circle' | false | default |