Skip to content

Commit

Permalink
Merge pull request #14 from ariflogs/main
Browse files Browse the repository at this point in the history
added button outline example
  • Loading branch information
ariflogs authored Oct 12, 2024
2 parents 1b4fcb1 + 3d492d1 commit 5450ea6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ export const componentConfig = {
filePath: "preview/components/button-style-default.tsx",
preview: lazy(() => import("@/preview/components/button-style-default")),
},
"button-style-outline": {
name: "button-style-default",
filePath: "preview/components/button-style-outline.tsx",
preview: lazy(() => import("@/preview/components/button-style-outline")),
},
"card-style-default": {
name: "card-style-default",
filePath: "preview/components/card-style-default.tsx",
Expand Down
6 changes: 6 additions & 0 deletions content/docs/components/button.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ npm install class-variance-authority
### Default

<ComponentShowcase name="button-style-default" />
<br />
<br />

### Outline

<ComponentShowcase name="button-style-outline" />
5 changes: 5 additions & 0 deletions preview/components/button-style-outline.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Button } from "@/packages/ui";

export default function ButtonStyleOutline() {
return <Button variant="outline">Click Me!</Button>;
}

0 comments on commit 5450ea6

Please sign in to comment.