mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 05:45:46 +00:00
24 lines
553 B
TypeScript
24 lines
553 B
TypeScript
import { ReactNode } from 'react';
|
|
import { cn } from '@/lib/helper';
|
|
|
|
interface StepsProps {
|
|
children?: ReactNode;
|
|
className?: string;
|
|
direction?: 'horizontal' | 'vertical';
|
|
}
|
|
|
|
const Steps = ({ children, className, direction }: StepsProps) => {
|
|
const stepsBaseClassName = cn('steps gap-2', {
|
|
'steps-horizontal': direction === 'horizontal',
|
|
'steps-vertical': direction === 'vertical',
|
|
});
|
|
|
|
return (
|
|
<ul className={cn(stepsBaseClassName, 'overflow-visible!', className)}>
|
|
{children}
|
|
</ul>
|
|
);
|
|
};
|
|
|
|
export default Steps;
|