{"id":25834397,"url":"https://github.com/hugeicons/angular","last_synced_at":"2025-03-01T00:58:14.301Z","repository":{"id":279227330,"uuid":"933141386","full_name":"hugeicons/angular","owner":"hugeicons","description":"Angular icon components for Hugeicons - Seamlessly integrate beautiful icons into your Angular applications.","archived":false,"fork":false,"pushed_at":"2025-02-15T08:43:44.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T13:54:42.028Z","etag":null,"topics":["angular","angular-components","icon-library","icons","svg-icons"],"latest_commit_sha":null,"homepage":"https://hugeicons.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hugeicons.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-15T08:43:25.000Z","updated_at":"2025-02-23T10:34:20.000Z","dependencies_parsed_at":"2025-02-24T13:56:03.221Z","dependency_job_id":"aa7a3cec-04e1-4dd9-8639-7dd7eabbfd47","html_url":"https://github.com/hugeicons/angular","commit_stats":null,"previous_names":["hugeicons/angular"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugeicons%2Fangular","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugeicons%2Fangular/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugeicons%2Fangular/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugeicons%2Fangular/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugeicons","download_url":"https://codeload.github.com/hugeicons/angular/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241300162,"owners_count":19940486,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","angular-components","icon-library","icons","svg-icons"],"created_at":"2025-03-01T00:58:13.750Z","updated_at":"2025-03-01T00:58:14.294Z","avatar_url":"https://github.com/hugeicons.png","language":"TypeScript","readme":"![31c9262e-aeea-4403-9086-3c8b88885cab](https://github.com/hugeicons/hugeicons-react/assets/130147052/ff91f2f0-095a-4c6d-8942-3af4759f9021)\n\n# @hugeicons/angular\n\n\u003e HugeIcons Pro Angular Component Library - Beautiful and customizable icons for your Angular applications\n\n## What is HugeIcons?\n\nHugeIcons is a comprehensive icon library designed for modern web and mobile applications. The free package includes 4,000+ carefully crafted icons in the Stroke Rounded style, while the pro version offers over 36,000 icons across 9 unique styles.\n\n### Key Highlights\n- **4,000+ Free Icons**: Extensive collection of Stroke Rounded icons covering essential UI elements, actions, and concepts\n- **Pixel Perfect**: Every icon is crafted on a 24x24 pixel grid ensuring crisp, clear display at any size\n- **Customizable**: Easily adjust colors, sizes, and styles to match your design needs\n- **Regular Updates**: New icons added regularly to keep up with evolving design trends\n\n\u003e 📚 **Looking for Pro Icons?** Check out our comprehensive documentation at [docs.hugeicons.com](https://docs.hugeicons.com) for detailed information about pro icons, styles, and advanced usage.\n\n![a40aa766-1b04-4a2a-a2e6-0ec3c492b96a](https://github.com/hugeicons/hugeicons-react/assets/130147052/f82c0e0e-60ae-4617-802f-812cdc7a58da)\n\n## Table of Contents\n- [What is HugeIcons?](#what-is-hugeicons)\n- [Features](#features)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Inputs](#inputs)\n- [Examples](#examples)\n  - [Basic Usage](#basic-usage)\n  - [Custom Size and Color](#custom-size-and-color)\n  - [Interactive Examples](#interactive-examples)\n- [Performance](#performance)\n- [Troubleshooting](#troubleshooting)\n- [Browser Support](#browser-support)\n- [Related Packages](#related-packages)\n- [Pro Version](#pro-version)\n- [License](#license)\n- [Related](#related)\n\n## Features\n\n- 🎨 Customizable colors and sizes\n- 💪 TypeScript support with full type definitions\n- 🎯 Tree-shakeable for optimal bundle size\n- 📦 Multiple bundle formats (ESM, CJS, UMD)\n- ⚡ Lightweight and optimized\n- 🔄 Alternate icon support for dynamic interactions\n\n## Installation\n\n```bash\n# Using npm\nnpm install @hugeicons/angular @hugeicons/core-free-icons\n\n# Using yarn\nyarn add @hugeicons/angular @hugeicons/core-free-icons\n\n# Using pnpm\npnpm add @hugeicons/angular @hugeicons/core-free-icons\n\n# Using bun\nbun add @hugeicons/angular @hugeicons/core-free-icons\n```\n\n## Usage\n\nFirst, import the HugeiconsModule in your app.module.ts:\n\n```typescript\nimport { NgModule } from '@angular/core';\nimport { HugeiconsModule } from '@hugeicons/angular';\n\n@NgModule({\n  imports: [\n    HugeiconsModule\n  ],\n  // ...\n})\nexport class AppModule { }\n```\n\nThen use it in your component:\n\n```typescript\n// your.component.ts\nimport { Component } from '@angular/core';\nimport { SearchIcon } from '@hugeicons/core-free-icons';\n\n@Component({\n  selector: 'app-your-component',\n  template: `\n    \u003chugeicons-icon\n      [icon]=\"icon\"\n      [size]=\"24\"\n      color=\"currentColor\"\n      [strokeWidth]=\"1.5\"\n    \u003e\u003c/hugeicons-icon\u003e\n  `\n})\nexport class YourComponent {\n  icon = SearchIcon;\n}\n```\n\n## Inputs\n\n| Input | Type | Default | Description |\n|-------|------|---------|-------------|\n| `icon` | `[string, Record\u003cstring, any\u003e][]` | Required | The main icon to display (array of SVG elements and their attributes) |\n| `size` | `number \\| string` | `24` | Icon size in pixels. Must be a positive number. String values will be parsed to numbers |\n| `strokeWidth` | `number \\| undefined` | `undefined` | Width of the icon strokes (works with stroke-style icons) |\n| `altIcon` | `[string, Record\u003cstring, any\u003e][]` | `undefined` | Alternative icon that can be used for states, interactions, or animations |\n| `showAlt` | `boolean` | `false` | When true, displays the altIcon instead of the main icon |\n| `color` | `string` | `currentColor` | Icon color (CSS color value) |\n\nNote: \n- The component accepts all standard SVG attributes which will be passed to the root SVG element.\n- The `size` input accepts both numbers and strings, but strings will be parsed to numbers and must result in a positive number.\n- Icon arrays are tuples of `[elementName: string, attributes: Record\u003cstring, any\u003e][]` representing SVG elements.\n\n## Examples\n\n### Basic Usage\n```typescript\n// basic.component.ts\nimport { Component } from '@angular/core';\nimport { SearchIcon } from '@hugeicons/core-free-icons';\n\n@Component({\n  selector: 'app-basic',\n  template: `\n    \u003chugeicons-icon [icon]=\"icon\"\u003e\u003c/hugeicons-icon\u003e\n  `\n})\nexport class BasicComponent {\n  icon = SearchIcon;\n}\n```\n\n### Custom Size and Color\n```typescript\n// custom.component.ts\nimport { Component } from '@angular/core';\nimport { NotificationIcon } from '@hugeicons/core-free-icons';\n\n@Component({\n  selector: 'app-custom',\n  template: `\n    \u003chugeicons-icon\n      [icon]=\"icon\"\n      [size]=\"32\"\n      color=\"#FF5733\"\n    \u003e\u003c/hugeicons-icon\u003e\n  `\n})\nexport class CustomComponent {\n  icon = NotificationIcon;\n}\n```\n\n### Interactive Examples\n\n#### Search Bar with Clear Button\n```typescript\n// search.component.ts\nimport { Component } from '@angular/core';\nimport { SearchIcon, CloseCircleIcon } from '@hugeicons/core-free-icons';\n\n@Component({\n  selector: 'app-search',\n  template: `\n    \u003cdiv\u003e\n      \u003cinput\n        [(ngModel)]=\"searchValue\"\n        type=\"text\"\n        placeholder=\"Search...\"\n      /\u003e\n      \u003chugeicons-icon\n        [icon]=\"SearchIcon\"\n        [altIcon]=\"CloseCircleIcon\"\n        [showAlt]=\"searchValue.length \u003e 0\"\n        (click)=\"clearSearch()\"\n      \u003e\u003c/hugeicons-icon\u003e\n    \u003c/div\u003e\n  `\n})\nexport class SearchComponent {\n  searchValue = '';\n  SearchIcon = SearchIcon;\n  CloseCircleIcon = CloseCircleIcon;\n\n  clearSearch(): void {\n    if (this.searchValue.length \u003e 0) {\n      this.searchValue = '';\n    }\n  }\n}\n```\n\n#### Theme Toggle\n```typescript\n// theme-toggle.component.ts\nimport { Component } from '@angular/core';\nimport { SunIcon, MoonIcon } from '@hugeicons/core-free-icons';\n\n@Component({\n  selector: 'app-theme-toggle',\n  template: `\n    \u003cbutton (click)=\"toggleTheme()\"\u003e\n      \u003chugeicons-icon\n        [icon]=\"SunIcon\"\n        [altIcon]=\"MoonIcon\"\n        [showAlt]=\"isDark\"\n      \u003e\u003c/hugeicons-icon\u003e\n    \u003c/button\u003e\n  `\n})\nexport class ThemeToggleComponent {\n  isDark = false;\n  SunIcon = SunIcon;\n  MoonIcon = MoonIcon;\n\n  toggleTheme(): void {\n    this.isDark = !this.isDark;\n  }\n}\n```\n\n## Performance\n\n- **Tree-shaking**: The package is fully tree-shakeable, ensuring only the icons you use are included in your final bundle\n- **Optimized SVGs**: All icons are optimized for size and performance\n- **Code Splitting**: Icons can be easily code-split when using dynamic imports\n\n## Troubleshooting\n\n### Common Issues\n\n1. **Icons not showing up?**\n   - Make sure you've installed both `@hugeicons/angular` and `@hugeicons/core-free-icons`\n   - Check that the HugeiconsModule is properly imported in your module\n   - Verify that icon names are correctly imported\n\n2. **TypeScript errors?**\n   - Ensure your `tsconfig.json` includes the necessary type definitions\n   - Check that you're using the latest version of the package\n\n3. **Bundle size concerns?**\n   - Use named imports instead of importing the entire icon set\n   - Implement code splitting for different sections of your app\n\n## Browser Support\n\nThe library supports all modern browsers.\n\n## Related Packages\n\n- [@hugeicons/react](https://www.npmjs.com/package/@hugeicons/react) - React component\n- [@hugeicons/vue](https://www.npmjs.com/package/@hugeicons/vue) - Vue component\n- [@hugeicons/svelte](https://www.npmjs.com/package/@hugeicons/svelte) - Svelte component\n- [@hugeicons/react-native](https://www.npmjs.com/package/@hugeicons/react-native) - React Native component\n\n## Pro Version\n\n\u003e 🌟 **Want access to 36,000+ icons and 9 unique styles?** \n\u003e Check out our [Pro Version](https://hugeicons.com/pricing) and visit [docs.hugeicons.com](https://docs.hugeicons.com) for comprehensive documentation.\n\n### Available Pro Styles\n- **Stroke Styles**\n  - Stroke Rounded (`@hugeicons-pro/core-stroke-rounded`)\n  - Stroke Sharp (`@hugeicons-pro/core-stroke-sharp`)\n  - Stroke Standard (`@hugeicons-pro/core-stroke-standard`)\n- **Solid Styles**\n  - Solid Rounded (`@hugeicons-pro/core-solid-rounded`)\n  - Solid Sharp (`@hugeicons-pro/core-solid-sharp`)\n  - Solid Standard (`@hugeicons-pro/core-solid-standard`)\n- **Special Styles**\n  - Bulk Rounded (`@hugeicons-pro/core-bulk-rounded`)\n  - Duotone Rounded (`@hugeicons-pro/core-duotone-rounded`)\n  - Twotone Rounded (`@hugeicons-pro/core-twotone-rounded`)\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE.md).\n\n## Related\n\n- [@hugeicons/core-free-icons](https://www.npmjs.com/package/@hugeicons/core-free-icons) - Free icon package\n- [HugeIcons Website](https://hugeicons.com) - Browse all available icons ","funding_links":[],"categories":["Third Party Components"],"sub_categories":["Icons"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugeicons%2Fangular","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugeicons%2Fangular","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugeicons%2Fangular/lists"}