Skip to content

Commit

Permalink
Merge pull request #24 from sippy-platform/0.11
Browse files Browse the repository at this point in the history
Mellow UI 0.11.3
  • Loading branch information
Studio384 authored Jul 18, 2022
2 parents 894e316 + 86a0bd3 commit a9547de
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sippy-platform/mellow-ui",
"version": "0.11.1",
"version": "0.11.3",
"description": "React components for the Mellow Design System.",
"main": "./dist/mellow-ui.umd.js",
"module": "./dist/mellow-ui.es.js",
Expand Down
9 changes: 8 additions & 1 deletion src/components/NavItem/NavItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ export type NavItemProps<T extends ElementType> = {
* Whether the element is active
*/
active?: boolean;
/**
* Whether the element is disabled
*/
disabled?: boolean;
/**
* Custom classes for the label
*/
Expand All @@ -28,6 +32,7 @@ export function NavItem<T extends ElementType>({
as,
active,
className,
disabled,
children,
...props
}: NavItemProps<T>) {
Expand All @@ -38,10 +43,12 @@ export function NavItem<T extends ElementType>({
className={clsx(
'pivot-link',
{
'active': active
'active': active,
'disabled': disabled
},
className
)}
disabled={disabled}
{...props}
>
{children}
Expand Down

0 comments on commit a9547de

Please sign in to comment.