semantic-ui-react#Flag JavaScript Examples
The following examples show how to use
semantic-ui-react#Flag.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: 04-custom.js From react-fluid-table with MIT License | 5 votes |
columns = [ { key: "id", header: "ID", width: 50 }, { key: "avatar", header: "Profile Photo", width: 150, content: ({ row }) => <ProfPic size="small" src={row.avatar} /> }, { key: "email", header: "Email", content: ({ row }) => <EmailInput defaultValue={row.email} /> }, { key: "firstName", header: "First", width: 100, content: ({ row }) => <TextStyle>{row.firstName}</TextStyle> }, { key: "lastName", header: "Last", width: 100, content: ({ row }) => <TextStyle>{row.lastName}</TextStyle> }, { key: "country", header: "Country", content: ({ row }) => !countryMap[row.country] ? ( `No flag for this country: ${row.country.toUpperCase()}` ) : ( <> <Flag name={row.country} /> {countryMap[row.country]} </> ) } ]