Skip to content

Commit

Permalink
SIKKA-5612[completed]
Browse files Browse the repository at this point in the history
  • Loading branch information
zaaakher committed Nov 7, 2023
1 parent 83607ef commit 216a9d8
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sikka/hawa",
"version": "0.16.14",
"version": "0.16.15",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
Expand Down
43 changes: 38 additions & 5 deletions stories/ElementsStories/Carousel.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ import {
CopyIcon,
Edit2,
Heart,
AppWindow,
ScreenShare,
ScreenShareOff,
Trash2,
Apple,
HardDrive,
} from "lucide-react";

const meta = {
Expand Down Expand Up @@ -62,13 +66,10 @@ export const Cards: Story = {
},
};
export const Autoplay: Story = {
render: () => (
render: (args) => (
<div className="hawa-flex hawa-flex-col hawa-gap-10">
<div className="hawa-h-52 hawa-max-w-md">
<Carousel items={cards} loop={false} />
</div>
<div className="hawa-h-52 hawa-max-w-md">
<Carousel items={cards1} loop={false} />
<Carousel {...args} items={autoplayCards} loop={false} />
</div>
</div>
),
Expand All @@ -89,6 +90,38 @@ const images = [
<img src="https://source.unsplash.com/featured/?nature,8" />,
<img src="https://source.unsplash.com/featured/?nature,9" />,
];
const autoplayCards = [
<LandingCard
className={"hawa-h-full hawa-max-w-sm"}
title="These cards will autoplay"
subtitle="This is a longer description of the landing card, you can use this directly in a landing page"
icon={<ScreenShare />}
/>,
<LandingCard
className={"hawa-h-full hawa-max-w-sm"}
title="This is the second card"
subtitle="This is a longer description of the landing card, you can use this directly in a landing page"
icon={<ScreenShareOff />}
/>,
<LandingCard
className={"hawa-h-full hawa-max-w-sm"}
title="This is the 3rd card"
subtitle="This is a longer description of the landing card, you can use this directly in a landing page"
icon={<AppWindow />}
/>,
<LandingCard
className={"hawa-h-full hawa-max-w-sm"}
title="This is the 4th card"
subtitle="This is a longer description of the landing card, you can use this directly in a landing page"
icon={<Apple />}
/>,
<LandingCard
className={"hawa-h-full hawa-max-w-sm"}
title="This is the 5th card"
subtitle="This is a longer description of the landing card, you can use this directly in a landing page"
icon={<HardDrive />}
/>,
];
const cards = [
<LandingCard
className={"hawa-h-full hawa-max-w-sm"}
Expand Down

0 comments on commit 216a9d8

Please sign in to comment.