Skip to content

Commit 878ee11

Browse files
committed
📃 Badge, avatar & accordion docs
1 parent c010ded commit 878ee11

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

config/components.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ export const componentConfig = {
3939
</details>
4040
</div>`,
4141
},
42-
"avatar-style-round": {
43-
name: "avatar-style-round",
44-
preview: lazy(() => import("@/preview/components/avatar-style-round")),
42+
"avatar-style-circle": {
43+
name: "avatar-style-circle",
44+
preview: lazy(() => import("@/preview/components/avatar-style-circle")),
4545
codeHtml: `<div className="inline-block w-14 h-14 border-2 border-black rounded-full overflow-hidden">
4646
<img
4747
className="w-full h-full"

content/docs/components/avatar.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Default Avatar
3+
description: Default rounded avatar that can show your users profile picture. ✨
4+
lastUpdated: 30 Sep, 2024
5+
---
6+
7+
import {ComponentShowcase} from "@/components"
8+
9+
<ComponentShowcase name="avatar-style-circle" />

content/docs/components/badge.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Default Badge
3+
description: The component that looks like a button that's not clickable!
4+
lastUpdated: 30 Sep, 2024
5+
---
6+
7+
import {ComponentShowcase} from "@/components"
8+
9+
<ComponentShowcase name="badge-style-default" />

preview/components/avatar-style-round.tsx renamed to preview/components/avatar-style-circle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
22

3-
export default function AvatarStyleRounded() {
3+
export default function AvatarStyleCircle() {
44
return (
55
<div className="inline-block w-14 h-14 border-2 border-black rounded-full overflow-hidden">
66
<img

0 commit comments

Comments
 (0)