@lollypop-ui/icons
v0.2.0
Published
Tree-shakable SVG icon library for Lollypop UI
Readme
@lollypop-ui/icons
Tree-shakable SVG icon library for Lollypop UI.
Installation
npm install @lollypop-ui/iconsUsage
import { SearchIcon, XIcon, CheckIcon } from '@lollypop-ui/icons';
function MyComponent() {
return (
<div>
<SearchIcon size={24} color="currentColor" />
<XIcon size={20} />
<CheckIcon size={16} className="text-green-500" />
</div>
);
}Available Icons
SearchIcon- Search/magnifying glassChevronDownIcon- Chevron pointing downXIcon- Close/X iconCheckIcon- CheckmarkAlertCircleIcon- Alert/warning circleInfoIcon- Information circleLoaderIcon- Loading spinner
Props
All icons accept the following props:
size?: number | string- Icon size (default: 24)color?: string- Icon color (default: 'currentColor')- All standard SVG attributes
Features
- ✅ Tree-shakable - Only imports what you use
- ✅ TypeScript support
- ✅ Customizable size and color
- ✅ Based on Lucide icons
- ✅ SSR compatible
License
MIT
