Business
released version: 1.1.0
Usage
import { CarmoreIcon } from '@o2-ui/carmore-icon';
// ...
<CarmoreIcon icon={'business'} ... />
// ...
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={'business'} ... /> // Uses the default ('1.5rem')
<CarmoreIcon icon={'business'} width={30} height={30} ... />
<CarmoreIcon icon={'business'} width={'48px'} height={'48px'} ... />
<CarmoreIcon icon={'business'} width={'5rem'} height={'5rem'} ... />
Color
Set className with a text color to change the icon color.
.text-red {
color: red;
}
.text-orange {
color: orange;
}
.text-green {
color: green;
}
.text-blue {
color: blue;
}
.text-purple {
color: purple;
}
<CarmoreIcon icon={'business'} className={'text-red'} ... />
<CarmoreIcon icon={'business'} className={'text-orange'} ... />
<CarmoreIcon icon={'business'} className={'text-green'} ... />
<CarmoreIcon icon={'business'} className={'text-blue'} ... />
<CarmoreIcon icon={'business'} 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={'business'} ... /> // Uses the default ('서류가방')
<CarmoreIcon icon={'business'} aria-label={'Business'} ... />
<CarmoreIcon icon={'business'} aria-label={'Business hours'} ... />
Update Log
- 1.4.0: Renamed component: HotelBusiness -> Business