Support setting custom attributes · Issue #55 · hyperhype/hyperscript · GitHub
Skip to content

Support setting custom attributes #55

Open

Description

@tusharmath

as of now there is no way to do something like this —

<x-my-web-component something-awesome="whish this worked!" />

Can hyperscript support custom attributes as well? This is extremely useful when writing webcomponents.

Thanks!

Activity

  1. dominictarr commented on Aug 25, 2016

    @dominictarr
    Collaborator

    you should be able to do that since I merged this: #33

    h('x-my-web-component', {attrs: {'something-awesome': 'wish this worked!'}})

    with hyperscript@2.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions