Skip to content

Commit

Permalink
fix: fix Icon and TabbarLink types
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Oct 14, 2021
1 parent 48f6940 commit 2d91f6d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion src/types/Icon.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,21 @@ interface Props {
*/
component?: string;

/** Icon badge */
/**
* Icon badge
* */
badge?: string | number | React.ReactNode;

/**
* Icon to render in "ios" theme
* */
ios?: React.ReactNode;

/**
* Icon to render in "material" theme
* */
material?: React.ReactNode;

/**
* Badge colors. Object with Tailwind CSS colors classes
* */
Expand Down
2 changes: 1 addition & 1 deletion src/types/TabbarLink.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ interface Props {
/**
* Link label content
*/
label?: React.ReactNode;
label?: string | React.ReactNode;
}

0 comments on commit 2d91f6d

Please sign in to comment.