diff --git a/packages/react/src/Grid/GridCell.tsx b/packages/react/src/Grid/GridCell.tsx
index 0f6ad322ca..64fbfe0f49 100644
--- a/packages/react/src/Grid/GridCell.tsx
+++ b/packages/react/src/Grid/GridCell.tsx
@@ -5,7 +5,7 @@
import clsx from 'clsx'
import { forwardRef } from 'react'
import type { ForwardedRef, HTMLAttributes, PropsWithChildren } from 'react'
-import { GridColumnNumber, GridColumnNumbers } from './Grid'
+import type { GridColumnNumber, GridColumnNumbers } from './Grid'
import { gridCellClasses } from './gridCellClasses'
type GridCellSpanAllProp = {
diff --git a/packages/react/src/Grid/gridCellClasses.ts b/packages/react/src/Grid/gridCellClasses.ts
index ac0f8cc01b..0b80749bfb 100644
--- a/packages/react/src/Grid/gridCellClasses.ts
+++ b/packages/react/src/Grid/gridCellClasses.ts
@@ -1,4 +1,4 @@
-import { GridCellProps } from './GridCell'
+import type { GridCellProps } from './GridCell'
export const gridCellClasses = (span?: GridCellProps['span'], start?: GridCellProps['start']): string[] => {
if (!span && !start) {
diff --git a/packages/react/src/Grid/index.ts b/packages/react/src/Grid/index.ts
index 6e30f40003..0d8979c3b0 100644
--- a/packages/react/src/Grid/index.ts
+++ b/packages/react/src/Grid/index.ts
@@ -1,2 +1,3 @@
-export * from './Grid'
+export { Grid } from './Grid'
+export type { GridProps, GridColumnNumber, GridColumnNumbers } from './Grid'
export type { GridCellProps } from './GridCell'
diff --git a/packages/react/src/Header/Header.test.tsx b/packages/react/src/Header/Header.test.tsx
index 4c5e346ad3..2c3a3dfac4 100644
--- a/packages/react/src/Header/Header.test.tsx
+++ b/packages/react/src/Header/Header.test.tsx
@@ -1,15 +1,11 @@
import { render, screen } from '@testing-library/react'
import { createRef } from 'react'
-import { Header, HeaderProps } from './Header'
+import { Header } from './Header'
import '@testing-library/jest-dom'
describe('Header', () => {
- const defaultProps: HeaderProps = {
- logoLink: '/',
- }
-
it('renders', () => {
- render()
+ render()
const component = screen.getByRole('banner')
@@ -18,7 +14,7 @@ describe('Header', () => {
})
it('renders a design system BEM class name', () => {
- render()
+ render()
const component = screen.getByRole('banner')
@@ -26,7 +22,7 @@ describe('Header', () => {
})
it('renders an additional class name', () => {
- render()
+ render()
const component = screen.getByRole('banner')
@@ -37,7 +33,7 @@ describe('Header', () => {
it('supports ForwardRef in React', () => {
const ref = createRef()
- render()
+ render()
const component = screen.getByRole('banner')
@@ -45,7 +41,7 @@ describe('Header', () => {
})
it('renders with a logo link', () => {
- render()
+ render()
const logoLink = screen.getByRole('link')
@@ -53,7 +49,7 @@ describe('Header', () => {
})
it('renders with a logo link title', () => {
- render()
+ render()
const logoLinkTitle = screen.getByRole('link', { name: 'Go to homepage' })
@@ -61,7 +57,7 @@ describe('Header', () => {
})
it('renders with links', () => {
- const { container } = render(Menu Content} />)
+ const { container } = render(Menu Content} />)
const menu = container.querySelector('.amsterdam-header__links')
@@ -70,7 +66,7 @@ describe('Header', () => {
})
it('renders with menu button', () => {
- render(Menu Button} />)
+ render(Menu Button} />)
const menu = screen.getByRole('button')
diff --git a/packages/react/src/MegaMenu/MegaMenu.tsx b/packages/react/src/MegaMenu/MegaMenu.tsx
index 6ba66901a4..9db41d5ee8 100644
--- a/packages/react/src/MegaMenu/MegaMenu.tsx
+++ b/packages/react/src/MegaMenu/MegaMenu.tsx
@@ -7,7 +7,7 @@ import clsx from 'clsx'
import { forwardRef } from 'react'
import type { ForwardedRef, ForwardRefExoticComponent, HTMLAttributes, PropsWithChildren, RefAttributes } from 'react'
-type MegaMenuProps = {} & PropsWithChildren>
+export type MegaMenuProps = PropsWithChildren>
interface MegaMenuComponent extends ForwardRefExoticComponent> {
ListCategory: typeof MegaMenuListCategory
diff --git a/packages/react/src/MegaMenu/index.ts b/packages/react/src/MegaMenu/index.ts
index 1781e11291..b9f9086abb 100644
--- a/packages/react/src/MegaMenu/index.ts
+++ b/packages/react/src/MegaMenu/index.ts
@@ -1 +1,2 @@
export { MegaMenu } from './MegaMenu'
+export type { MegaMenuProps } from './MegaMenu'
diff --git a/packages/react/src/Overlap/Overlap.tsx b/packages/react/src/Overlap/Overlap.tsx
index 04ac0bccd9..8315707bb5 100644
--- a/packages/react/src/Overlap/Overlap.tsx
+++ b/packages/react/src/Overlap/Overlap.tsx
@@ -7,11 +7,10 @@ import clsx from 'clsx'
import { forwardRef } from 'react'
import type { ForwardedRef, HTMLAttributes, PropsWithChildren } from 'react'
+export type OverlapProps = PropsWithChildren>
+
export const Overlap = forwardRef(
- (
- { children, className, ...restProps }: PropsWithChildren>,
- ref: ForwardedRef,
- ) => (
+ ({ children, className, ...restProps }: OverlapProps, ref: ForwardedRef) => (
{children}
diff --git a/packages/react/src/Overlap/index.ts b/packages/react/src/Overlap/index.ts
index 2e2fa9599e..8e499c31b3 100644
--- a/packages/react/src/Overlap/index.ts
+++ b/packages/react/src/Overlap/index.ts
@@ -1 +1,2 @@
export { Overlap } from './Overlap'
+export type { OverlapProps } from './Overlap'
diff --git a/packages/react/src/Switch/Switch.tsx b/packages/react/src/Switch/Switch.tsx
index fd4c589369..ef67c342cb 100644
--- a/packages/react/src/Switch/Switch.tsx
+++ b/packages/react/src/Switch/Switch.tsx
@@ -7,11 +7,10 @@ import clsx from 'clsx'
import { forwardRef, useId } from 'react'
import type { ForwardedRef, InputHTMLAttributes, PropsWithChildren } from 'react'
+export type SwitchProps = PropsWithChildren>
+
export const Switch = forwardRef(
- (
- { className, id, ...restProps }: PropsWithChildren>,
- ref: ForwardedRef,
- ) => {
+ ({ className, id, ...restProps }: SwitchProps, ref: ForwardedRef) => {
const inputId = id || useId()
return (
diff --git a/packages/react/src/Switch/index.ts b/packages/react/src/Switch/index.ts
index dd5775ab08..8d82602b2d 100644
--- a/packages/react/src/Switch/index.ts
+++ b/packages/react/src/Switch/index.ts
@@ -1 +1,2 @@
export { Switch } from './Switch'
+export type { SwitchProps } from './Switch'