Skip to main content

Search


검색하기

Usage

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

// ...

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

// ...


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={'search'} ... /> // Uses the default ('검색하기')
<CarmoreIcon icon={'search'} width={30} height={30} ... />
<CarmoreIcon icon={'search'} width={'48px'} height={'48px'} ... />
<CarmoreIcon icon={'search'} 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={'search'} className={'text-red'} ... />
<CarmoreIcon icon={'search'} className={'text-orange'} ... />
<CarmoreIcon icon={'search'} className={'text-green'} ... />
<CarmoreIcon icon={'search'} className={'text-blue'} ... />
<CarmoreIcon icon={'search'} className={'text-purple'} ... />


Accessibility (a11y)

We recommend configuring attributes such as role and aria-label.

  • The default role is 'img'.
  • The default aria-label is '검색하기'.
  • Base accessibility defaults are provided, and you can override them when needed.
  • (Hover the icon to check the tooltip.)
검색하기BrowseMagnifier
<CarmoreIcon icon={'search'} ... /> // Uses the default ('검색하기')
<CarmoreIcon icon={'search'} aria-label={'Browse'} ... />
<CarmoreIcon icon={'search'} aria-label={'Magnifier'} ... />