vital-ui-kit-react
vital-ui-kit-react copied to clipboard
各個 UI 元件應該有選擇性的 id
Describe the solution you'd like
現在 UI 元件有 className
如果能有選擇性的 id
會更好。
Additional context
原生的 React UI 元件通常會有 id
, className
和 children
。
應該已經可以把id props pass 下去了 what else do we need?
還有 style
,看來可以參考看看: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/index.d.ts#L1743
如果是 extends from BoxProps or straight from sc I think it should be fine 有些舊的component: Menu.. 要改一下props types