File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -628,6 +628,7 @@ export type PicklistItemProps = {
628628 selected ?: boolean ;
629629 disabled ?: boolean ;
630630 icon ?: string ;
631+ iconRight ?: string ;
631632 divider ?: 'top' | 'bottom' ;
632633 onClick ?: ( e : React . SyntheticEvent ) => void ;
633634 children ?: React . ReactNode ;
@@ -642,6 +643,7 @@ export const PicklistItem: FC<PicklistItemProps> = ({
642643 value,
643644 disabled,
644645 icon,
646+ iconRight,
645647 divider,
646648 onClick : onClick_ ,
647649 children,
@@ -708,6 +710,16 @@ export const PicklistItem: FC<PicklistItemProps> = ({
708710 { label || children }
709711 </ span >
710712 </ span >
713+ { iconRight && (
714+ < span className = 'slds-media__figure slds-media__figure_reverse' >
715+ < Icon
716+ category = 'utility'
717+ icon = { iconRight }
718+ size = 'x-small'
719+ textColor = 'currentColor'
720+ />
721+ </ span >
722+ ) }
711723 </ div >
712724 </ li >
713725 ) ;
You can’t perform that action at this time.
0 commit comments