Hoverable
Hoverable은 hover state를 추적하고 isHovering을 render prop으로 전달합니다. ref는 underlying div로 전달됩니다.
import { Hoverable } from '@ilokesto/utilinent';
<Hoverable>{(isHovering) => <Card highlighted={isHovering} />}</Hoverable>프로퍼티
| Prop | Type | 설명 |
|---|---|---|
children | ReactNode | (isHovering) => ReactNode | content, 선택적으로 hover state를 받습니다. |
fallback | ReactNode | render prop 미사용 시 children과 함께 렌더링됩니다. |
표준 div props와 ref가 전달됩니다.