Skip to main content

TabDay


released version: 1.3.0

렌트카 탭

Usage

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

// ...

<CarmoreIcon icon={'tab-day'} ... />

// ...


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={'tab-day'} ... /> // Uses the default ('1.5rem')
<CarmoreIcon icon={'tab-day'} width={30} height={30} ... />
<CarmoreIcon icon={'tab-day'} width={'48px'} height={'48px'} ... />
<CarmoreIcon icon={'tab-day'} 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={'tab-day'} className={'text-red'} ... />
<CarmoreIcon icon={'tab-day'} className={'text-orange'} ... />
<CarmoreIcon icon={'tab-day'} className={'text-green'} ... />
<CarmoreIcon icon={'tab-day'} className={'text-blue'} ... />
<CarmoreIcon icon={'tab-day'} className={'text-purple'} ... />


Accessibility (a11y)

Set attributes such as role and aria-label for better accessibility.

  • 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.)
렌트카 탭Rental car booking
<CarmoreIcon icon={'tab-day'} ... /> // Uses the default ('렌트카 탭')
<CarmoreIcon icon={'tab-day'} aria-label={'Rental car booking'} ... />