Skip to content

Commit

Permalink
🎨 refacto & rename dots pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
damien-schneider committed Sep 10, 2024
1 parent 8ef0564 commit c05fdd0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
14 changes: 14 additions & 0 deletions src/ui/cuicui/other/patterns/dots-pattern/dots-pattern-preview.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { DotsPattern } from "#/src/ui/cuicui/other/patterns/dots-pattern/dots-pattern";
import { cn } from "#/src/utils/cn";

export function DotsPatternPreview() {
return (
<div className="relative flex h-full w-full flex-col items-center justify-center overflow-hidden">
<DotsPattern
className={cn(
"[mask-image:radial-gradient(300px_circle_at_center,white,transparent)]",
)}
/>
</div>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,6 @@ type DotPatternProps = {
className?: string;
};

export function DotsPatternVariant1() {
return (
<div className="relative flex h-full w-full flex-col items-center justify-center overflow-hidden">
<DotsPattern
className={cn(
"[mask-image:radial-gradient(300px_circle_at_center,white,transparent)]",
)}
/>
</div>
);
}

export function DotsPattern({
width = 16,
height = 16,
Expand Down

0 comments on commit c05fdd0

Please sign in to comment.