diff --git a/.changeset/twelve-kings-confess.md b/.changeset/twelve-kings-confess.md new file mode 100644 index 00000000000..7d55fca5497 --- /dev/null +++ b/.changeset/twelve-kings-confess.md @@ -0,0 +1,5 @@ +--- +'@primer/react': minor +--- + +Adds NavList.GroupHeading component that can be used instead of the ActionList.Group 'title' prop if you need to render something besides a string diff --git a/packages/react/src/ActionList/Group.tsx b/packages/react/src/ActionList/Group.tsx index fbace08dc7a..1e29f5be58d 100644 --- a/packages/react/src/ActionList/Group.tsx +++ b/packages/react/src/ActionList/Group.tsx @@ -107,7 +107,7 @@ export const Group: React.FC> = ({ ) } -export type GroupHeadingProps = Pick & +export type ActionListGroupHeadingProps = Pick & Omit & SxProp & React.HTMLAttributes & { @@ -123,7 +123,7 @@ export type GroupHeadingProps = Pick