Skip to content

Commit 904b372

Browse files
authored
feat(UserProfile): add lozenge prop for nav items (#621)
1 parent 712e42e commit 904b372

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/react/src/components/user-profile/user-profile.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export const UserProfile: VoidFunctionComponent<UserProfileProps> = ({
9898
href={action.href}
9999
label={action.label}
100100
isHtmlLink={action.isHtmlLink}
101+
lozenge={action.lozenge}
101102
disabled={action.disabled}
102103
onClick={action.disabled ? undefined : (event) => {
103104
action.onClick?.(event);

packages/storybook/stories/user-profile.stories.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ const options: NavItemProps[] = [
3333
},
3434
{
3535
label: 'Option B',
36+
lozenge: 'New',
3637
value: 'optionB',
3738
href: '/testb',
3839
},

0 commit comments

Comments
 (0)