diff --git a/.changeset/smooth-balloons-hope.md b/.changeset/smooth-balloons-hope.md new file mode 100644 index 00000000000..e9229a3c876 --- /dev/null +++ b/.changeset/smooth-balloons-hope.md @@ -0,0 +1,5 @@ +--- +'@primer/react': patch +--- + +Passthrough ActionList.Group props from NavList.Group diff --git a/src/NavList/NavList.tsx b/src/NavList/NavList.tsx index 798e39b82a3..40386ad7f2a 100644 --- a/src/NavList/NavList.tsx +++ b/src/NavList/NavList.tsx @@ -240,13 +240,14 @@ export type NavListGroupProps = { title?: string } & SxProp +const defaultSx = {} // TODO: ref prop -const Group = ({title, children, sx: sxProp = {}}: NavListGroupProps) => { +const Group: React.VFC = ({title, children, sx: sxProp = defaultSx, ...props}) => { return ( <> {/* Hide divider if the group is the first item in the list */} - + {children}