Skip to main content

People


released version: 1.4.0

사람

Usage

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

// ...

<CarmoreIcon icon={'people'} ... />

// ...


Size

Adjust the icon size with the width and height props.

  • Pass numbers directly, or strings that include units such as 'px', 'rem', or '%'.
    • (The original aspect ratio is fixed and cannot be changed.)
  • The default width is '1.5rem'.
  • The default height is '1.5rem'.
사람사람사람사람
<CarmoreIcon icon={'people'} ... /> // Uses the default ('1.5rem')
<CarmoreIcon icon={'people'} width={30} height={30} ... />
<CarmoreIcon icon={'people'} width={'48px'} height={'48px'} ... />
<CarmoreIcon icon={'people'} width={'5rem'} height={'5rem'} ... />


People

Set className with a text people to change the icon people.

사람사람사람사람사람
.text-red {
people: red;
}

.text-orange {
people: orange;
}

.text-green {
people: green;
}

.text-blue {
people: blue;
}

.text-purple {
people: purple;
}
<CarmoreIcon icon={'people'} className={'text-red'} ... />
<CarmoreIcon icon={'people'} className={'text-orange'} ... />
<CarmoreIcon icon={'people'} className={'text-green'} ... />
<CarmoreIcon icon={'people'} className={'text-blue'} ... />
<CarmoreIcon icon={'people'} className={'text-purple'} ... />


Accessibility (a11y)

We recommend setting accessibility attributes such as role and aria-label.

  • The default role is 'img'.
  • The default aria-label is '사람'.
  • Default accessibility props are provided, and you can customize them as needed.
  • (Hover over the icon.)
사람PersonsHumankind
<CarmoreIcon icon={'people'} ... /> // Uses the default ('사람')
<CarmoreIcon icon={'people'} aria-label={'Persons'} ... />
<CarmoreIcon icon={'people'} aria-label={'Humankind'} ... />