-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various documentation refinements (#80)
* Document buttons * Let's try a background gradient You know, for fun! * Create an Example component and simplify examples * fixins --------- Co-authored-by: Cody A Price <cody@ngrok.com>
- Loading branch information
1 parent
8d17907
commit bfd6845
Showing
14 changed files
with
512 additions
and
439 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,19 @@ | ||
import { cx } from "@/cx"; | ||
import { WithStyleProps } from "@/types/with-style-props"; | ||
import { PropsWithChildren } from "react"; | ||
|
||
type Props = PropsWithChildren & WithStyleProps; | ||
|
||
export function Example({ children, className, style }: Props) { | ||
return ( | ||
<div | ||
className={cx( | ||
"rounded-lg border to-gray-200 from-gray-50 bg-gradient-to-br dark:bg-gradient-to-tl flex items-center justify-center p-4 md:p-16 border-b-0 border-gray-300 rounded-b-none", | ||
className, | ||
)} | ||
style={style} | ||
> | ||
{children} | ||
</div> | ||
); | ||
} |
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
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
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
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
Oops, something went wrong.
bfd6845
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
mantle-storybook – ./
mantle-storybook.vercel.app
mantle-storybook-git-main-ngrok-dev.vercel.app
mantle-storybook-ngrok-dev.vercel.app