refactor: switched to mdx for better styling
This commit is contained in:
1 parent
5e78869cbf
commit
18f8496af9
6 files changed
+660
-24
No files matched your search
@@ -0,0 +1,11 @@
|
||||
export function Callout({ children, type = 'info' }: { children: React.ReactNode; type?: 'info' | 'warning' }) {
|
||||
const styles = type === 'warning'
|
||||
? 'bg-amber-500/10 border-amber-500 text-amber-200'
|
||||
: 'bg-blue-500/10 border-blue-500 text-blue-200';
|
||||
|
||||
return (
|
||||
<div className={`p-4 my-4 rounded-lg border-l-4 ${styles}`}>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user