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
widthis '1.5rem'. - The default
heightis '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
roleis 'img'. - The default
aria-labelis '사람'. - Default accessibility props are provided, and you can customize them as needed.
- (Hover over the icon.)
<CarmoreIcon icon={'people'} ... /> // Uses the default ('사람')
<CarmoreIcon icon={'people'} aria-label={'Persons'} ... />
<CarmoreIcon icon={'people'} aria-label={'Humankind'} ... />