Skip to content

Commit

Permalink
Add chart on chart intro page
Browse files Browse the repository at this point in the history
  • Loading branch information
raix committed Jul 15, 2024
1 parent cb2b059 commit eff9489
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docs/charts/introduction.mdx
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
# Charts

import { Card } from '@/ui/components/Card';
import { chartDataMedium } from "@/docs/charts/_lib/data";
import { BarChart } from '@/ui/charts/BarChart';

<Card className="h-64 w-96">
<BarChart data={chartDataMedium} isAnimationActive={false} />
</Card>
2 changes: 1 addition & 1 deletion ui/components/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { PropsWithChildren } from "react";
import { tv } from "tailwind-variants";

const cardStyles = tv({
base: "flex flex-col gap-2 bg-card text-card-foreground border-2 border-border rounded-lg shadow-sm p-2 w-fit items-center"
base: "flex flex-col gap-2 bg-card text-card-foreground border-2 border-border rounded-lg shadow-sm p-4 w-fit items-center justify-center",
});

type CardProps = {
Expand Down

0 comments on commit eff9489

Please sign in to comment.