Skip to content

Allow standard html attributes to be passed to input #59

Closed
@pechitook

Description

@pechitook

Hello. I don't have a ton of experience in Svelte yet so maybe this is not an issue, but it would be great to allow any valid html attribute to be applied to the inner input this library exposes. Some examples I can think of

  • id
  • aria- attributes
  • data- attributes

Is there an easy way to do this in Svelte or one would need to create wrapper proprs for all of them? This doesn't scale well with dynamic ones like data- which are custom (valid) attributes. Here's an example of how Vue handles this

Happy to put up a PR once we agree on the strategy here

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