Skip to content

Adds Optional typing to Row and Column Indicator Label#373

Open
VictorGaiva wants to merge 2 commits intoiddan:masterfrom
VictorGaiva:feat/indicator-generic-props
Open

Adds Optional typing to Row and Column Indicator Label#373
VictorGaiva wants to merge 2 commits intoiddan:masterfrom
VictorGaiva:feat/indicator-generic-props

Conversation

@VictorGaiva
Copy link

@VictorGaiva VictorGaiva commented Jan 30, 2024

Description

Allows a user pass a row and column labels with types different from string, which makes RowIndicator or ColumnIndicator components required, with the matching typing signature.

You can pass a different type for the label
image

But you don't pass the component, the typecheck fails
image

But if the passed labels extends string, it doesn't fail anymore
image

Motiviation

While passing a label with types other than 'string', and using a custom RowIndicator component to manually render the content of the label, it was not correctly typechecking.

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

Successfully merging this pull request may close these issues.

1 participant