Skip to main content

HotelCreditCard


신용카드

Usage

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

// ...

<CarmoreIcon icon={'hotel-credit-card'} ... />

// ...


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={'hotel-credit-card'} ... /> // Uses the default ('신용카드')
<CarmoreIcon icon={'hotel-credit-card'} width={30} height={30} ... />
<CarmoreIcon icon={'hotel-credit-card'} width={'48px'} height={'48px'} ... />
<CarmoreIcon icon={'hotel-credit-card'} width={'5rem'} height={'5rem'} ... />


Change color

Set the text color via the className prop to recolor the icon.

신용카드신용카드신용카드신용카드신용카드
.text-red {
color: red;
}

.text-orange {
color: orange;
}

.text-green {
color: green;
}

.text-blue {
color: blue;
}

.text-purple {
color: purple;
}
<CarmoreIcon icon={'hotel-credit-card'} className={'text-red'} ... />
<CarmoreIcon icon={'hotel-credit-card'} className={'text-orange'} ... />
<CarmoreIcon icon={'hotel-credit-card'} className={'text-green'} ... />
<CarmoreIcon icon={'hotel-credit-card'} className={'text-blue'} ... />
<CarmoreIcon icon={'hotel-credit-card'} 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 '신용카드'.
  • Accessibility defaults are provided, and you can customize them as needed.
  • (Hover the icon to see the tooltip.)
신용카드Make a paymentCard payment
<CarmoreIcon icon={'hotel-credit-card'} ... /> // Uses the default ('신용카드')
<CarmoreIcon icon={'hotel-credit-card'} aria-label={'Make a payment'} ... />
<CarmoreIcon icon={'hotel-credit-card'} aria-label={'Card payment'} ... />