Skip to content

Commit 4d7965b

Browse files
samjulienBenTaylorDev
authored andcommitted
feat(docs): support afterFeatures slot in FrameworkOverview
Adds an optional `afterFeatures` ReactNode prop to the FrameworkOverview landing-page component, rendered as a section between the supported features grid and the architecture section. Lets the hosting MDX page inject contextual content (links, callouts, sign-up cards) below the final feature without needing to modify the component for each integration.
1 parent 25e0e3c commit 4d7965b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

docs/components/content/landing-pages/framework-overview.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ export interface FrameworkOverviewProps {
4343
initCommand: string;
4444
featuresLink: string;
4545
supportedFeatures?: FrameworkFeature[];
46+
/** Optional content rendered immediately after the supported features section. */
47+
afterFeatures?: ReactNode;
4648
architectureImage?: string;
4749
architectureVideo?: string;
4850
liveDemos: LiveDemo[];
@@ -61,6 +63,7 @@ export function FrameworkOverview({
6163
initCommand,
6264
featuresLink,
6365
supportedFeatures = [],
66+
afterFeatures,
6467
architectureImage,
6568
architectureVideo,
6669
liveDemos,
@@ -271,6 +274,10 @@ export function FrameworkOverview({
271274
</section>
272275
)}
273276

277+
{afterFeatures && (
278+
<section className="mb-12 sm:mb-24 px-4">{afterFeatures}</section>
279+
)}
280+
274281
{/* Architecture */}
275282
<section className="mb-12 sm:mb-24">
276283
<div className="mb-8 sm:mb-12 text-center px-4">

0 commit comments

Comments
 (0)