Package Exports
- bear-hackathon-icons
- bear-hackathon-icons/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bear-hackathon-icons) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
bear-hackathon-icons
SVG icons as React components for bear-related projects.
Installation
npm install bear-hackathon-iconsUsage
React Components
import { Bear } from 'bear-hackathon-icons';
function MyComponent() {
return <Bear size={24} color="currentColor" />;
}Raw SVG Strings
import { BearSvg } from 'bear-hackathon-icons';
function MyComponent() {
return <div dangerouslySetInnerHTML={{ __html: BearSvg }} />;
}Available Icons
Bear- Bear icon componentBearSvg- Bear icon as SVG string
Props
All icon components accept standard SVG props:
size?: number | string- Icon sizecolor?: string- Icon color (defaults to currentColor)className?: string- CSS class name
Development
# Build the library
npm run build
# Generate React components from SVGs
npm run build:svgr
# Build TypeScript
npm run build:ts
# Clean generated files
npm run cleanLicense
MIT