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
fontSize
andlineHeight
style properties to modify emoji flags - And
width
andheight
style 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
style
existing 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-label
andtitle
and what it should be set to
BREAKING CHANGES
code
is nowcountryCode
title
andaria-label
are not defined any more, it is up to the developer to pass these instyleProps
is nowstyle