feat: add className prop to EmptyState component for custom styling
This commit is contained in:
@@ -6,11 +6,12 @@ interface EmptyStateProps {
|
|||||||
title: string;
|
title: string;
|
||||||
description: string;
|
description: string;
|
||||||
action?: ReactNode;
|
action?: ReactNode;
|
||||||
|
className?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function EmptyState({icon: Icon, title, description, action}: EmptyStateProps) {
|
export function EmptyState({icon: Icon, title, description, action, className}: EmptyStateProps) {
|
||||||
return (
|
return (
|
||||||
<div className="text-center py-14">
|
<div className={`text-center py-14 ${className ?? ''}`}>
|
||||||
<div className="inline-flex items-center justify-center w-10 h-10 rounded-md border border-neutral-200 bg-neutral-50 mb-4">
|
<div className="inline-flex items-center justify-center w-10 h-10 rounded-md border border-neutral-200 bg-neutral-50 mb-4">
|
||||||
<Icon className="h-5 w-5 text-neutral-400" />
|
<Icon className="h-5 w-5 text-neutral-400" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user