Skip to content

Commit

Permalink
feat(Tabs): revert TabItem title type
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorKluch committed Dec 13, 2024
1 parent c083a0a commit 12b76c4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions src/components/Tabs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,16 +290,16 @@ LANDING_BLOCK-->

### Tabs.Item properties

| Name | Description | Type | Default |
| :------- | ------------------------------ | :---------------: | :-----: |
| id | Tab ID | `string` | |
| title | Tab title | `React.ReactNode` | |
| meta | Tab description | `string` | |
| hint | HTML title attribute | `string` | |
| icon | Icon displayed at the start | `React.ReactNode` | |
| counter | Number displayed at the end | `number` `string` | |
| label | `<Label>` displayed at the end | `React.ReactNode` | |
| disabled | Inactive state | `boolean` | |
| Name | Description | Type | Default |
| :------- | ------------------------------ | :------------------------: | :-----: |
| id | Tab ID | `string` | |
| title | Tab title | `string` `React.ReactNode` | |
| meta | Tab description | `string` | |
| hint | HTML title attribute | `string` | |
| icon | Icon displayed at the start | `React.ReactNode` | |
| counter | Number displayed at the end | `number` `string` | |
| label | `<Label>` displayed at the end | `React.ReactNode` | |
| disabled | Inactive state | `boolean` | |

## Properties

Expand Down
2 changes: 1 addition & 1 deletion src/components/Tabs/TabsItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type ExtraProps = Omit<
export interface TabsItemProps {
id: string;
className?: string;
title: React.ReactNode;
title: string | React.ReactNode;
meta?: string;
hint?: string;
active?: boolean;
Expand Down

0 comments on commit 12b76c4

Please sign in to comment.