-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38f1350
commit ec02574
Showing
7 changed files
with
271 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@zenml-io/react-component-library": minor | ||
--- | ||
|
||
add hover card component |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { Meta } from "@storybook/react"; | ||
import React from "react"; | ||
import { HoverCard, HoverCardContent, HoverCardTrigger } from "."; | ||
import { StoryObj } from "@storybook/react"; | ||
|
||
const meta = { | ||
title: "Elements/HoverCard", | ||
component: HoverCard, | ||
argTypes: {}, | ||
parameters: { | ||
layout: "centered" | ||
}, | ||
|
||
tags: ["autodocs"] | ||
} satisfies Meta<typeof HoverCard>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const DefaultVariant: Story = { | ||
name: "Default", | ||
render: () => ( | ||
<HoverCard> | ||
<HoverCardTrigger className="border border-theme-border-moderate px-3 py-2 bg-theme-surface-primary rounded-md"> | ||
Hover | ||
</HoverCardTrigger> | ||
<HoverCardContent>This is a hover card</HoverCardContent> | ||
</HoverCard> | ||
) | ||
}; |
Oops, something went wrong.