frenic / csstype

Strict TypeScript and Flow types for style based on MDN data
MIT License
1.7k stars 69 forks source link

Idea to wrap types into element types? #181

Open joeprivettsmart opened 1 year ago

joeprivettsmart commented 1 year ago

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?