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

feat(Tabs): allow string for TabItem counter value #1989

Merged
merged 2 commits into from
Dec 13, 2024

Conversation

EgorKluch
Copy link
Contributor

No description provided.

@EgorKluch EgorKluch requested a review from sofiushko as a code owner December 12, 2024 16:17
| Name | Description | Type | Default |
| :------- | ------------------------------ | :------------------------: | :-----: |
| id | Tab ID | `string` | |
| title | Tab title | `string` `React.ReactNode` | |
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

string already includes in ReactNode type

@EgorKluch EgorKluch linked an issue Dec 12, 2024 that may be closed by this pull request
@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@gravity-ui-bot
Copy link
Contributor

Visual Tests Report is ready.

@@ -25,14 +25,14 @@ type ExtraProps = Omit<
export interface TabsItemProps {
id: string;
className?: string;
title: string | React.ReactNode;
title: React.ReactNode;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is html title, it could have only type string

@korvin89 korvin89 merged commit b628086 into main Dec 13, 2024
6 checks passed
@korvin89 korvin89 deleted the allow-react-node-into-tab-item-counter branch December 13, 2024 10:14
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.

Tabs: Allow text/ReactNode counter in TabItem
3 participants