JSPM

bear-hackathon-icons

0.0.3
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • 0
    • Score
      100M100P100Q31121F
    • License MIT

    SVG icons as React components for bear-related projects

    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-icons

    Usage

    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 component
    • BearSvg - Bear icon as SVG string

    Props

    All icon components accept standard SVG props:

    • size?: number | string - Icon size
    • color?: 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 clean

    License

    MIT