-
Notifications
You must be signed in to change notification settings - Fork 0
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.The text was updated successfully, but these errors were encountered: