Demos
All sizes
NorgeNorgeNorgeNorgeNorge
Code Editor
<Flex.Horizontal align="center"> <CountryFlag iso="NO" size="x-small" /> <CountryFlag iso="NO" size="small" /> <CountryFlag iso="NO" size="medium" /> <CountryFlag iso="NO" size="large" /> <CountryFlag iso="NO" size="x-large" /> </Flex.Horizontal>
Square
Sveits
Code Editor
<CountryFlag iso="CH" shape="square" />
Eufemia Forms
Code Editor
const MyComponent = ({ label, ...props }) => { const { value } = useValueProps(props) const iso = String(value) return ( <FieldBlock label={label}> <CountryFlag iso={iso} /> </FieldBlock> ) } render( <Form.Handler> <Flex.Horizontal> <Field.SelectCountry label="Select a country" path="/country" width="medium" value="SE" /> <MyComponent label="Country" path="/country" /> </Flex.Horizontal> </Form.Handler>, )