-
Hi, thanks for this extensive library. I'm wondering what the idea is behind inheriting the I thought the idea was that components that inherit this type would have a container to which all these normal HTML props are applied. Is this true? When I picked a random component to check this reasoning I couldn't find this in the React code. I'm looking at your library to decide how I want to structure a bindings library of my own for MantineUI :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Yeah, it's because I wanted all eg- Dropdown properties to be exclusively IDropdownProp's. When i want to do |
Beta Was this translation helpful? Give feedback.
Yeah, it's because I wanted all eg- Dropdown properties to be exclusively IDropdownProp's. When i want to do
dropdown.ariaLabeledBy "someLabel"
, I don't have to explicitly add the ariaLabeledBy property under the Dropdown props,-- I can just pass the type that I want to the reusable FelizProps and it stays type-safe. Somebody opened an issue a few months ago suggesting another way of implementing the same idea, though, so I would look at that in order to make an informed decision. But FelizProps equate to ComponentProps in version 9 of FluentUI code, not version 8. Some components have them, some don't. I hope this helps!