IconTextFader component that smoothly transitions between an icon and text. The text is shown when the component is hovered or active, and the icon is shown otherwise.
Component props
<IconTextFader text="Search" active={isActive}> <SearchIcon /></IconTextFader> Copy
<IconTextFader text="Search" active={isActive}> <SearchIcon /></IconTextFader>
IconTextFader component that smoothly transitions between an icon and text. The text is shown when the component is hovered or active, and the icon is shown otherwise.