Skip to main content

Room


released version: 1.1.0

숙실

Usage

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

// ...

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

// ...


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={'room'} ... /> // Uses the default ('1.5rem')
<CarmoreIcon icon={'room'} width={30} height={30} ... />
<CarmoreIcon icon={'room'} width={'48px'} height={'48px'} ... />
<CarmoreIcon icon={'room'} 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={'room'} className={'text-red'} ... />
<CarmoreIcon icon={'room'} className={'text-orange'} ... />
<CarmoreIcon icon={'room'} className={'text-green'} ... />
<CarmoreIcon icon={'room'} className={'text-blue'} ... />
<CarmoreIcon icon={'room'} 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.)
숙실BedroomHotel
<CarmoreIcon icon={'room'} ... /> // Uses the default ('숙실')
<CarmoreIcon icon={'room'} aria-label={'Bedroom'} ... />
<CarmoreIcon icon={'room'} aria-label={'Hotel'} ... />

Update Log

  • 1.4.0: Renamed component: HotelRoom -> Room