mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-09 05:44:01 +00:00
Migrate to Mantine v8 and Design Changes (#961)
* mantine v8 migration * various design changes and improvements
This commit is contained in:
parent
bea55d48a8
commit
c1330d92b2
473 changed files with 12469 additions and 11607 deletions
3
src/shared/components/divider/divider.module.css
Normal file
3
src/shared/components/divider/divider.module.css
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
.root {
|
||||
--divider-color: var(--theme-colors-border);
|
||||
}
|
||||
19
src/shared/components/divider/divider.tsx
Normal file
19
src/shared/components/divider/divider.tsx
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
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}
|
||||
/>
|
||||
);
|
||||
},
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue