Skip to content

Commit 4e49a70

Browse files
author
Fergus Bisset
committed
feat(behaviours): add BehavioursLoader to main barrel export
- Export BehavioursLoader from root package for convenience - Users can now import from either: - @fergusbisset/nhs-fdp-design-system (main barrel) - @fergusbisset/nhs-fdp-design-system/behaviours/react (specific) - Provides flexibility in import patterns
1 parent 2fc4c08 commit 4e49a70

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,9 @@ export { BrandThemeProvider, useBrand } from './themes/BrandThemeProvider';
2626
// Font loading utilities
2727
export * from './styles/font-config';
2828

29+
// Behaviours - React component for SSR-safe behaviour initialization
30+
export { BehavioursLoader } from './behaviours/react.js';
31+
export type { BehavioursLoaderProps } from './behaviours/react.js';
32+
2933
// Brand assets and helpers (logos, enums, and utilities)
3034
export { BrandKey, LogoVariant, getBrandLogo, brandLogos } from './assets/brand';

0 commit comments

Comments
 (0)