Skip to content

Commit

Permalink
feat(TabsItem): add anchor attributes (#6439)
Browse files Browse the repository at this point in the history
- closed #5879
  • Loading branch information
SevereCloud authored Jan 25, 2024
1 parent 0ccc5fa commit 18ee39c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/vkui/src/components/TabsItem/TabsItem.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
min-block-size: 32px;
border-radius: var(--vkui--size_border_radius--regular);
transition: background-color 150ms ease-out;
text-decoration: none;
}

.TabsItem--withGaps {
Expand Down
6 changes: 4 additions & 2 deletions packages/vkui/src/components/TabsItem/TabsItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useExternRef } from '../../hooks/useExternRef';
import { usePrevious } from '../../hooks/usePrevious';
import { useDOM } from '../../lib/dom';
import { warnOnce } from '../../lib/warnOnce';
import { HTMLAttributesWithRootRef } from '../../types';
import { AnchorHTMLAttributesOnly, HTMLAttributesWithRootRef } from '../../types';
import { TabsContextProps, TabsModeContext } from '../Tabs/Tabs';
import { Tappable } from '../Tappable/Tappable';
import { Headline } from '../Typography/Headline/Headline';
Expand All @@ -29,7 +29,9 @@ const fillModeClassNames = {
shrinked: styles['TabsItem--shrinked'],
};

export interface TabsItemProps extends HTMLAttributesWithRootRef<HTMLElement> {
export interface TabsItemProps
extends HTMLAttributesWithRootRef<HTMLElement>,
AnchorHTMLAttributesOnly {
/**
* Добавляет иконку слева.
*
Expand Down

0 comments on commit 18ee39c

Please sign in to comment.