Skip to content

Commit

Permalink
Merge pull request #5 from yun-cheng/feat/ui-divider
Browse files Browse the repository at this point in the history
feat(UI): add Divider component
  • Loading branch information
yun-cheng authored Apr 28, 2024
2 parents daffb9b + 83c2586 commit 2577649
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 2577649

Please sign in to comment.