Skip to content

Commit

Permalink
Divider converted to tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed Jan 7, 2025
1 parent 0273fcb commit 9f20cf0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions src/components/Divider/Divider.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { Box, BoxProps } from '~/components/Box'
import { HTMLAttributes } from 'react'

type DividerProps = BoxProps
import { cn } from '~/utils'

interface DividerProps extends HTMLAttributes<HTMLHRElement> {
className?: string
}

export const Divider = (props: DividerProps) => {
const { color = 'borderNormal', marginY = '4', ...rest } = props
const { className, ...rest } = props

return (
<Box
as="hr"
marginY={marginY}
background={color}
height="px"
borderWidth="none"
<hr
className={cn('my-4 h-px bg-border-normal border-none', className)}
{...rest}
/>
)
Expand Down
2 changes: 1 addition & 1 deletion src/components/DropdownMenu/DropdownMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const DropdownMenuItemIndicator = ({

export const DropdownMenuSeparator = () => (
<DropdownMenuPrimitive.Separator className={styles.separator} asChild>
<Divider marginTop="1" marginBottom="1" />
<Divider className="my-1" />
</DropdownMenuPrimitive.Separator>
)

Expand Down

0 comments on commit 9f20cf0

Please sign in to comment.