devpunks / snuggsi

snuggsi ツ - Easy Custom Elements in ~1kB
https://snuggsi.com
MIT License
398 stars 17 forks source link

⚠️ 📖 DRAFT: <tag-complete> #117

Open snuggs opened 7 years ago

snuggs commented 7 years ago

<tag-complete>

Inspiration drawn from @kurtcagle's tags. @kurtcagle if you can drop the codepen in the description that would be great. Also gives you the chance to catch up to speed with the lifecycle callbacks.

https://snuggsi.now.sh#lifecycle please give it a moment as there is a 30s warmup time with the free plan at https://now.sh

Coparable Examples

Demonstration

email-recipients

snuggs commented 7 years ago

@brandondees @kurtcagle name rechange to <tag-complete>

brandondees commented 7 years ago

yeah generalize the names to what the component actually does, rather than the specific use case for it. be sure to list known use-cases in the documentation but I'm all for more generic components.

brandondees commented 7 years ago

a consumer can always wrap them in their own context-specific name at import time, btw

snuggs commented 7 years ago

@brandondees OR use an identifier <tag-complete id=recipients> There's a way to finesse that yes?

brandondees commented 7 years ago

no i mean <link rel=import href=your-element.html name=my-element>