Skip to content

Commit

Permalink
feat(UI): add Divider component
Browse files Browse the repository at this point in the history
  • Loading branch information
yun-cheng committed Apr 28, 2024
1 parent daffb9b commit 83c2586
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/components/ui/Divider.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from 'react'
import cn from 'utils/cn'

const Divider = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div
ref={ref}
className={cn('h-px w-full bg-divider', className)}
{...props}
/>
))

export default Divider

0 comments on commit 83c2586

Please sign in to comment.