Skip to content

Commit

Permalink
Extend type after main marge
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-solecki committed Jan 11, 2024
1 parent 83a001e commit 34d8b4f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/SelectionList/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ type CommonListItemProps<TItem> = {

/** Callback to fire when an error is dismissed */
onDismissError?: (item: TItem) => void;

/** Component to display on the right side */
rightHandSideComponent?: ((item: TItem) => ReactElement<TItem>) | ReactElement;
};

type User = {
Expand Down Expand Up @@ -226,6 +229,9 @@ type BaseSelectionListProps<TItem extends User | RadioItem> = Partial<ChildrenPr

/** Whether focus event should be delayed */
shouldDelayFocus?: boolean;

/** Component to display on the right side of each child */
rightHandSideComponent?: ReactNode;
};

type ItemLayout = {
Expand Down

0 comments on commit 34d8b4f

Please sign in to comment.