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';
8
8
import { ProgressiveBlurHover } from ' ./progressive-blur-hover' ;
9
9
import { ProgressiveBlurSlider } from ' ./progressive-blur-slider' ;
10
10
import ComponentCodePreview from ' @/components/website/component-code-preview' ;
11
+ import CodeBlock from ' @/components/website/code-block' ;
11
12
12
13
# Progressive blur
13
14
@@ -38,6 +39,41 @@ You can change the direction of the blur effect with the `direction` prop.
38
39
filePath = ' app/docs/progressive-blur/progressive-blur-slider.tsx'
39
40
/>
40
41
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
+
41
77
## Component API
42
78
43
79
### ProgressiveBlur
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ function Header() {
64
64
href = 'https://pro.motion-primitives.com/'
65
65
target = '_blank'
66
66
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 = 'inline-flex items-center text-sm font-medium text-zinc-700 hover:text-zinc-950 md:hidden dark:text-zinc-300 dark:hover:text-white'
68
68
>
69
69
Advanced
70
70
< ProBadge />
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export function Header() {
41
41
href = 'https://pro.motion-primitives.com/'
42
42
target = '_blank'
43
43
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 = 'inline-flex items-center text-sm font-medium text-zinc-700 hover:text-zinc-950 md:hidden dark:text-zinc-300 dark:hover:text-white'
45
45
>
46
46
Advanced
47
47
< ProBadge />
You can’t perform that action at this time.
0 commit comments