Skip to content

Architecture for inheriting FelizProps.props #6

Answered by sydsutton
Wouter8 asked this question in Q&A
Discussion options

You must be logged in to vote

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!

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Wouter8
Comment options

@Wouter8
Comment options

@sydsutton
Comment options

Answer selected by sydsutton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants