feat: finish my pages overview page according to wireframe
This commit is contained in:
9
components/TempDesignSystem/Divider/divider.module.css
Normal file
9
components/TempDesignSystem/Divider/divider.module.css
Normal file
@@ -0,0 +1,9 @@
|
||||
.divider {
|
||||
border-bottom-color: var(--some-grey-color, #111);
|
||||
border-bottom-style: solid;
|
||||
border-bottom-width: 1px;
|
||||
}
|
||||
|
||||
.dotted {
|
||||
border-bottom-style: dotted;
|
||||
}
|
||||
7
components/TempDesignSystem/Divider/divider.ts
Normal file
7
components/TempDesignSystem/Divider/divider.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { dividerVariants } from "./variants"
|
||||
|
||||
import type { VariantProps } from "class-variance-authority"
|
||||
|
||||
export interface DividerProps
|
||||
extends React.HTMLAttributes<HTMLDivElement>,
|
||||
VariantProps<typeof dividerVariants> {}
|
||||
7
components/TempDesignSystem/Divider/index.tsx
Normal file
7
components/TempDesignSystem/Divider/index.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import { dividerVariants } from "./variants"
|
||||
|
||||
import type { DividerProps } from "./divider"
|
||||
|
||||
export default function Divider({ variant }: DividerProps) {
|
||||
return <div className={dividerVariants({ variant })} />
|
||||
}
|
||||
15
components/TempDesignSystem/Divider/variants.ts
Normal file
15
components/TempDesignSystem/Divider/variants.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { cva } from "class-variance-authority"
|
||||
|
||||
import styles from "./divider.module.css"
|
||||
|
||||
export const dividerVariants = cva(styles.divider, {
|
||||
variants: {
|
||||
variant: {
|
||||
default: styles.default,
|
||||
dotted: styles.dotted,
|
||||
},
|
||||
},
|
||||
defaultVariants: {
|
||||
variant: "default",
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user