add a <Tip/> component and use it

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

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>
);
}