Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Type definition for all icon names #295

Open
bastiW opened this issue Mar 28, 2024 · 1 comment
Open

Feat: Type definition for all icon names #295

bastiW opened this issue Mar 28, 2024 · 1 comment

Comments

@bastiW
Copy link

bastiW commented Mar 28, 2024

It would be awesome to have some type definitions of all icons.

So that I could do something like that for example in Angular:

import type { PhosphorIconNames } from '@iconify/types';

@Component({
  selector: 'my-icon',
  templateUrl: './my-icon.component.html',
})
export class MyIconComponent {

  @Input()
  name: PhosphorIconNames = 'heart';

}

and then use it:

<my-icon name="heart"></my-icon>
@milesj
Copy link

milesj commented Apr 4, 2024

Was just looking for this. Kind of sad it doesn't already exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants