Skip to content

Commit

Permalink
fix: added component and media props types (#17)
Browse files Browse the repository at this point in the history
* added component property

* added media prop to MenuListItem types
  • Loading branch information
benlammel committed Nov 4, 2021
1 parent e820160 commit 42c0bf8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/types/MenuListItem.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ interface Props {
* Menu list item link's `href` attribute
*/
href?: string | boolean;
/**
* Content of the chip media area (e.g. icon)
*/
media?: React.ReactNode;
}
6 changes: 6 additions & 0 deletions src/types/TabbarLink.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ interface Props {
* @default false
*/
active?: boolean;
/**
* Component's HTML Element
*
* @default 'a'
*/
component?: string;
/**
* Link icon content
*/
Expand Down

0 comments on commit 42c0bf8

Please sign in to comment.