ui for onboarding

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-04-11 19:57:52 +02:00
committed by Carl-Gerhard Lindesvärd
parent 645b9ca9d4
commit 97627583ec
14 changed files with 644 additions and 1 deletions

View File

@@ -0,0 +1,37 @@
import { cn } from '@/utils/cn';
type Props = {
children: React.ReactNode;
className?: string;
title: string;
description?: React.ReactNode;
};
export const OnboardingDescription = ({
children,
className,
}: Pick<Props, 'children' | 'className'>) => (
<div className={cn('font-medium text-muted-foreground', className)}>
{children}
</div>
);
const OnboardingLayout = ({
title,
description,
children,
className,
}: Props) => {
return (
<div className={cn('flex max-w-3xl flex-col gap-4', className)}>
<div className="mb-4">
<h1 className="text-2xl font-medium">{title}</h1>
{description}
</div>
{children}
</div>
);
};
export default OnboardingLayout;