Skip to content

Add support for kebab-case to camelCase conversions #11

@patricknelson

Description

@patricknelson

Would love the ability to support the following:

<custom-element foo-bar="baz></custom-element>

Where the element attribute foo-bar is automatically translated to its camelCase counterpart: fooBar, making it available in CustomElement.svelte as:

<script>
  export let fooBar = '';
</script>

<div>{fooBar}</div>

Looks like @wagich already did some work to address this particular use case in this specific commit already: b95dd6c

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions