Skip to content

Investigate additional properties to define on Components #13

Description

@quinnjr

As mentioned in #12 (comment):

Looks like this is something we will want to eventually add to ybc::Input. Want to pop a ticket so that we can track this?

This tracking ticket is in reference to wanting to include the onkeypress event to the Input component but extends to other parts of ybc.

Currently, a number of expected/desirable properties are not available on the components in the library, including those expected for global attributes, aria- labels, and per-Component properties (eg: input). A curated list of properties should probably be added to components that would benefit from them.


Input

Attributes

  • autocomplete - Option
  • autofocus - Option
  • class(es) - Option
  • dir - Option
  • disabled - bool
  • hidden - Option
  • id - Option <-- See Adding id fields to most components. #10
  • inputmode - Option
  • form - Option
  • list - Option
  • name - String
  • placeholder - String <-- make Option?
  • required - Option
  • spellcheck - Option
  • style - Option
  • tabindex - Option
  • type - InputType
  • value - String

Events

  • onabort ?
  • onblur
  • onerror
  • onfocus
  • oncancel ?
  • onchange <-- currently update?
  • onclick
  • ondblclick
  • oninput
  • oninvalid
  • onkeydown
  • onkeypress
  • onkeyup
  • onsubmit
  • ontouchcancel
  • ontouchend
  • ontouchstart

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions