File tree Expand file tree Collapse file tree 3 files changed +38
-2
lines changed Expand file tree Collapse file tree 3 files changed +38
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { ProgressiveBlurBasic } from './progressive-blur-basic';
88import { ProgressiveBlurHover } from ' ./progressive-blur-hover' ;
99import { ProgressiveBlurSlider } from ' ./progressive-blur-slider' ;
1010import ComponentCodePreview from ' @/components/website/component-code-preview' ;
11+ import CodeBlock from ' @/components/website/code-block' ;
1112
1213# Progressive blur
1314
@@ -38,6 +39,41 @@ You can change the direction of the blur effect with the `direction` prop.
3839 filePath = ' app/docs/progressive-blur/progressive-blur-slider.tsx'
3940/>
4041
42+ ## Installation
43+
44+ <Tabs defaultValue = " cli" >
45+
46+ <TabsList >
47+ <TabsTrigger value = ' cli' >CLI</TabsTrigger >
48+ <TabsTrigger value = ' manual' >Manual</TabsTrigger >
49+ </TabsList >
50+
51+ <TabsContent value = " cli" >
52+
53+ <CodeBlock
54+ code = { ` npx shadcn add "https://motion-primitives.com/c/progressive-blur.json" ` }
55+ lang = ' bash'
56+ className = ' h-[52px]'
57+ />
58+
59+ </TabsContent >
60+
61+ <TabsContent value = " manual" >
62+
63+ <Steps >
64+
65+ <Step >Copy and paste the following code into your project.</Step >
66+
67+ <CodeBlock filePath = ' components/core/progressive-blur.tsx' />
68+
69+ <Step >Update the import paths to match your project setup.</Step >
70+
71+ </Steps >
72+
73+ </TabsContent >
74+
75+ </Tabs >
76+
4177## Component API
4278
4379### ProgressiveBlur
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ function Header() {
6464 href = 'https://pro.motion-primitives.com/'
6565 target = '_blank'
6666 rel = 'noopener noreferrer'
67- className = 'inline-flex items-center text-sm font-medium text-zinc-700 hover:text-zinc-950 dark:text-zinc-300 dark:hover:text-white'
67+ className = 'hidden items-center text-sm font-medium text-zinc-700 hover:text-zinc-950 md:inline-flex dark:text-zinc-300 dark:hover:text-white'
6868 >
6969 Advanced
7070 < ProBadge />
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export function Header() {
4141 href = 'https://pro.motion-primitives.com/'
4242 target = '_blank'
4343 rel = 'noopener noreferrer'
44- className = 'inline-flex items-center text-sm font-medium text-zinc-700 hover:text-zinc-950 dark:text-zinc-300 dark:hover:text-white'
44+ className = 'hidden items-center text-sm font-medium text-zinc-700 hover:text-zinc-950 md:inline-flex dark:text-zinc-300 dark:hover:text-white'
4545 >
4646 Advanced
4747 < ProBadge />
You can’t perform that action at this time.
0 commit comments