diff --git a/components/summary-list/src/SummaryListContainer.tsx b/components/summary-list/src/SummaryListContainer.tsx index dcc35679a..213ebac9f 100644 --- a/components/summary-list/src/SummaryListContainer.tsx +++ b/components/summary-list/src/SummaryListContainer.tsx @@ -1,7 +1,7 @@ -import { FC, createElement as h } from 'react'; +import { FC, HTMLAttributes, createElement as h } from 'react'; import { StandardProps, classBuilder } from '@not-govuk/component-helpers'; -export type SummaryListContainerProps = StandardProps & { +export type SummaryListContainerProps = StandardProps & HTMLAttributes & { }; export const SummaryListContainer: FC = ({ diff --git a/components/summary-list/src/SummaryListItem.tsx b/components/summary-list/src/SummaryListItem.tsx index 54e3ba753..91509f4dd 100644 --- a/components/summary-list/src/SummaryListItem.tsx +++ b/components/summary-list/src/SummaryListItem.tsx @@ -1,11 +1,11 @@ -import { FC, ReactNode, createElement as h } from 'react'; +import { FC, HTMLAttributes, ReactNode, createElement as h } from 'react'; import { Anchor, AnchorList } from '@not-govuk/anchor-list'; import { A } from '@not-govuk/link'; import { StandardProps, classBuilder } from '@not-govuk/component-helpers'; export type Action = Anchor; -export type SummaryListItemProps = StandardProps & { +export type SummaryListItemProps = StandardProps & HTMLAttributes & { /** Name or 'key' of the item */ name: ReactNode | string /** Value of the item */