Skip to content

Releases: danalloway/react-country-flag

3.1.0 CDN + DEP updates

31 Mar 00:55
Compare
Choose a tag to compare
v3.1.0

bump version

Typescript support

19 Nov 18:47
Compare
Choose a tag to compare

Re-launched the library again using TSDX as a boilerplate for full TS support.

Total Rewrite

18 Dec 01:54
Compare
Choose a tag to compare
  • Flags are the same size by default now
    • Use fontSize and lineHeight style properties to modify emoji flags
    • And width and height style properties for svg flags
  • 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 and title and what it should be set to

BREAKING CHANGES

  • code is now countryCode
  • title and aria-label are not defined any more, it is up to the developer to pass these in
  • styleProps is now style