woocommerce/plugins/woocommerce-admin/client/components/flag
Justin Shreve dd98f925ef Add Flag Component (https://github.com/woocommerce/woocommerce-admin/pull/197)
* Add Flag Component

* Fix for travis ci

* Fix spacing with new card layout
2018-07-16 12:28:26 -04:00
..
README.md Add Flag Component (https://github.com/woocommerce/woocommerce-admin/pull/197) 2018-07-16 12:28:26 -04:00
index.js Add Flag Component (https://github.com/woocommerce/woocommerce-admin/pull/197) 2018-07-16 12:28:26 -04:00
style.scss Add Flag Component (https://github.com/woocommerce/woocommerce-admin/pull/197) 2018-07-16 12:28:26 -04:00

README.md

Flag

Use the Flag component to display a country's flag.

How to use:

import { Flag } from 'components/flag';

render: function() {
  return (
    <Flag
		code="US"
		size={ 24 }
	/>
  );
}

Props

  • code: Two letter, three letter or three digit country code.
  • order: An order can be passed instead of code and the code will automatically be pulled from the billing or shipping data.
  • width: Flag image width.
  • height: Flag image height.
  • round: Default true. True to display a rounded flag.
  • className: Additional CSS classes.