Skip to main content

CountryFlagMA


모로코

Usage

import { CarmoreIcon } from '@o2-ui/carmore-icon';

// ...

<CarmoreIcon icon={'country-flag-ma'} ... />

// ...


Control size

You can control the icon size with the width and height props.

  • Pass numbers directly, or strings with units such as 'px', 'rem', or '%'.
    • (The icon keeps its intrinsic aspect ratio and cannot be stretched.)
  • The default width is '1.5rem'.
  • The default height is '1.5rem'.
모로코모로코모로코모로코
<CarmoreIcon icon={'country-flag-ma'} ... /> // Uses the default ('모로코')
<CarmoreIcon icon={'country-flag-ma'} width={30} height={30} ... />
<CarmoreIcon icon={'country-flag-ma'} width={'48px'} height={'48px'} ... />
<CarmoreIcon icon={'country-flag-ma'} width={'5rem'} height={'5rem'} ... />


Color guidance

⚠️ This icon is a multi-colored flag SVG, so its colors do not change just by setting className or a text color.

  • To highlight it, use a surrounding background, border, or badge.


Accessibility (a11y)

We recommend configuring attributes such as role and aria-label.

  • The default role is 'img'.
  • The default aria-label is '모로코'.
  • Base accessibility defaults are provided, and you can override them when needed.
  • (Hover the icon to check the tooltip.)
모로코Flag
<CarmoreIcon icon={'country-flag-ma'} ... /> // Uses the default ('모로코')
<CarmoreIcon icon={'country-flag-ma'} aria-label={'Flag'} ... />