Skip to content
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

Idea to wrap types into element types? #181

Open
joeprivettsmart opened this issue May 2, 2023 · 0 comments
Open

Idea to wrap types into element types? #181

joeprivettsmart opened this issue May 2, 2023 · 0 comments

Comments

@joeprivettsmart
Copy link

Hi there, nice work on the package :) We are composing element types like so:

export type TSInput = 
  Partial<Pick<HTMLInputElement, 'disabled' | 'min' | 'max' | 'size' | 'autocomplete'>> &
  Pick<StandardProperties, 'textAlign'> & {
    as?: 'input' | 'textarea' | 'div'
    onKeyDown?: (e: KeyboardEvent<HTMLInputElement>) => void
    onPaste?: (e: ClipboardEvent<HTMLInputElement>) => void
  }

I would imagine that every application would be doing the same for standard element attributes. Will this package look to export types for element?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant