Releases: danalloway/react-country-flag
Releases · danalloway/react-country-flag
3.1.0 CDN + DEP updates
v3.1.0 bump version
Typescript support
Re-launched the library again using TSDX as a boilerplate for full TS support.
Total Rewrite
- Flags are the same size by default now
- Use
fontSizeandlineHeightstyle properties to modify emoji flags - And
widthandheightstyle properties for svg flags
- Use
- All props are passed to the element by default
- This allows you to use / overwrite any prop at your leisure
- This includes the
styleexisting styles are maintained unless you pass in an overriding property
- Library and example are now a functional components
- Developer is charge of passing in
aria-labelandtitleand what it should be set to
BREAKING CHANGES
codeis nowcountryCodetitleandaria-labelare not defined any more, it is up to the developer to pass these instylePropsis nowstyle