mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 04:50:12 +02:00
c1330d92b2
* mantine v8 migration * various design changes and improvements
20 lines
589 B
TypeScript
20 lines
589 B
TypeScript
import { Divider as MantineDivider, DividerProps as MantineDividerProps } from '@mantine/core';
|
|
import { forwardRef } from 'react';
|
|
|
|
import styles from './divider.module.css';
|
|
|
|
export interface DividerProps extends MantineDividerProps {}
|
|
|
|
export const Divider = forwardRef<HTMLDivElement, DividerProps>(
|
|
({ classNames, style, ...props }, ref) => {
|
|
return (
|
|
<MantineDivider
|
|
classNames={{ root: styles.root, ...classNames }}
|
|
ref={ref}
|
|
style={{ ...style }}
|
|
{...props}
|
|
/>
|
|
);
|
|
},
|
|
);
|