Skip to main content

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

NameDescriptionTypeRequiredDefault
countryThe ISO 3166-1-alpha-2 code for the countryStringtrue-
shapeSet the flags shape'default', 'square', 'circle'falsedefault