ui for onboarding
This commit is contained in:
committed by
Carl-Gerhard Lindesvärd
parent
645b9ca9d4
commit
97627583ec
37
apps/dashboard/src/app/(onboarding)/onboarding-layout.tsx
Normal file
37
apps/dashboard/src/app/(onboarding)/onboarding-layout.tsx
Normal 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;
|
||||
Reference in New Issue
Block a user