Skip to content

Commit

Permalink
Merge pull request #15 from marcoshaber99/link-button-example
Browse files Browse the repository at this point in the history
added button link example
  • Loading branch information
ariflogs authored Oct 13, 2024
2 parents 5450ea6 + e62569b commit 2a56ff5
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 @@ -68,6 +68,11 @@ export const componentConfig = {
filePath: "preview/components/button-style-outline.tsx",
preview: lazy(() => import("@/preview/components/button-style-outline")),
},
"button-style-link": {
name: "button-style-link",
filePath: "preview/components/button-style-link.tsx",
preview: lazy(() => import("@/preview/components/button-style-link")),
},
"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 @@ -35,3 +35,9 @@ npm install class-variance-authority
### Outline

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

### Link

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

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

0 comments on commit 2a56ff5

Please sign in to comment.