✨ add a <Tip/> component and use it

This commit is contained in:
Thomas Camlong committed 2022-06-28 19:08:18 +02:00
1 parent 9945ef892e
commit 1a66bfb8be
3 files changed
+48 -44

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
import { Text } from '@mantine/core';
interface TipProps {
children: React.ReactNode;
}
export default function Tip(props: TipProps) {
return (
<Text
style={{
fontSize: '0.75rem',
color: 'gray',
marginBottom: '0.5rem',
}}
>
Tip: {props.children}
</Text>
);
}