Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds Optional typing to Row and Column Indicator Label #373

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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