Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Fasih/DPROD-3003/Add bottom content prop #396

Merged
merged 2 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,6 @@ export const Default: Story = {
},
],
},
bottomContent: <>Bottom Content</>,
},
};
2 changes: 2 additions & 0 deletions libs/blocks/src/lib/features/content-slider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const ContentSlider = <T extends CardVariantType>({
description,
cta: CTA,
className,
bottomContent,
cardSliderProps,
}: ContentSliderProps<T>) => {
return (
Expand All @@ -33,6 +34,7 @@ const ContentSlider = <T extends CardVariantType>({
<CardSlider {...cardSliderProps} />
}
{CTA && <CTA />}
{bottomContent}
</FluidContainer>
</Section>
);
Expand Down
1 change: 1 addition & 0 deletions libs/blocks/src/lib/features/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export interface FeaturesV4Props extends BlockWrapperProps {
export interface ContentSliderProps<T extends CardVariantType> {
title?: ReactNode;
description?: ReactNode;
bottomContent?: ReactNode;
cta?: () => ReactNode;
className?: string;
cardSliderProps?: CardSliderProps<T>;
Expand Down
Loading