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

Lowercase components #5

Open
jimafisk opened this issue Nov 28, 2021 · 0 comments
Open

Lowercase components #5

jimafisk opened this issue Nov 28, 2021 · 0 comments

Comments

@jimafisk
Copy link
Member

Svelte does not support components that begin with a lowecase letter:

This is intentional to denote a regular HTML element (starts with a lowercase letter) from a Svelte component (starts with an uppercase letter).

If Pico could support lowercase components and allow you to import a component with the same name as an HTML element to override it, that would help with the discoverable cms we're creating for Plenti. Essentially a developer should be able to build an app with standard elements like <h1>{title}</h1> and the CMS could inject a component to override the heading (e.g. import h1 from './ejected/cms/h1.pico';) to add things like .contentEditable or a bold/italic/underline widget.

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

No branches or pull requests

1 participant