shinokada / svelte-heros-v2

Hero Icons v2 for Svelte. You can select outline and solid icons using the variation props. Svlete-Heros support major CSS framework. You can add additional CSS using the `class` props.
https://svelte-heros-v2.codewithshin.com
Apache License 2.0
41 stars 3 forks source link

[BUG]: Different Names than original #14

Closed scrapix closed 1 year ago

scrapix commented 1 year ago

Description of the bug

Hey, thank you fro your great work!

One question I have... why have you chosen different icon names than in the original library?

original: x-circle svelte-heros-v2: XCircle

Steps To Reproduce

Documentation

Additional Information

No response

shinokada commented 1 year ago

You can create a component called My-component. But you can't import it as My-component.

// this works
import Mycomponent from './My-component.svelte'
// this won't work
import My-component from './My-component.svelte'

You have to use your component name without -.