Skip to main content

Luggage


released version: 1.4.0

수화물

Usage

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

// ...

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

// ...


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={'luggage'} ... /> // Uses the default ('1.5rem')
<CarmoreIcon icon={'luggage'} width={30} height={30} ... />
<CarmoreIcon icon={'luggage'} width={'48px'} height={'48px'} ... />
<CarmoreIcon icon={'luggage'} 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={'luggage'} className={'text-red'} ... />
<CarmoreIcon icon={'luggage'} className={'text-orange'} ... />
<CarmoreIcon icon={'luggage'} className={'text-green'} ... />
<CarmoreIcon icon={'luggage'} className={'text-blue'} ... />
<CarmoreIcon icon={'luggage'} 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.)
수화물BaggageSuitcase
<CarmoreIcon icon={'luggage'} ... /> // Uses the default ('수화물')
<CarmoreIcon icon={'luggage'} aria-label={'Baggage'} ... />
<CarmoreIcon icon={'luggage'} aria-label={'Suitcase'} ... />