@@ -4,7 +4,6 @@ description: A versatile alert component for displaying important messages and c
44---
55
66import { Alert } from " @prisma-docs/eclipse" ;
7- import { Terminal , AlertCircle , CheckCircle2 , AlertTriangle } from " lucide-react" ;
87
98### Usage
109
@@ -88,24 +87,23 @@ You can customize the icon by passing a custom icon component or pass `null` to
8887
8988``` tsx
9089import { Alert } from " @prisma-docs/eclipse" ;
91- import { Terminal , AlertCircle , CheckCircle2 , AlertTriangle } from " lucide-react" ;
9290
9391export function CustomIconAlerts() {
9492 return (
9593 <>
96- <Alert variant = " ppg" icon = { <Terminal className = " h-4 w-4" />} >
94+ <Alert variant = " ppg" icon = { <i className = " fa-regular fa-terminal h-4 w-4" />} >
9795 Alert with a custom terminal icon.
9896 </Alert >
9997
100- <Alert variant = " error" icon = { <AlertCircle className = " h-4 w-4" />} >
98+ <Alert variant = " error" icon = { <i className = " fa-regular fa-circle-exclamation h-4 w-4" />} >
10199 Alert with a custom error icon.
102100 </Alert >
103101
104- <Alert variant = " success" icon = { <CheckCircle2 className = " h-4 w-4" />} >
102+ <Alert variant = " success" icon = { <i className = " fa-regular fa-check h-4 w-4" />} >
105103 Alert with a custom success icon.
106104 </Alert >
107105
108- <Alert variant = " warning" icon = { <AlertTriangle className = " h-4 w-4" />} >
106+ <Alert variant = " warning" icon = { <i className = " fa-regular fa-triangle-exclamation h-4 w-4" />} >
109107 Alert with a custom warning icon.
110108 </Alert >
111109
@@ -119,26 +117,25 @@ export function CustomIconAlerts() {
119117
120118<div className = " not-prose my-6 space-y-4" >
121119 <p className = " text-sm font-semibold mb-4" >Live Examples:</p >
120+ <Alert variant = " ppg" icon = { <i className = " fa-regular fa-terminal h-4 w-4" />} >
121+ Alert with a custom terminal icon.
122+ </Alert >
122123
123- <Alert variant = " ppg" icon = { <Terminal className = " h-4 w-4" />} >
124- Alert with a custom terminal icon.
125- </Alert >
126-
127- <Alert variant = " error" icon = { <AlertCircle className = " h-4 w-4" />} >
128- Alert with a custom error icon.
129- </Alert >
124+ <Alert variant = " error" icon = { <i className = " fa-regular fa-circle-exclamation h-4 w-4" />} >
125+ Alert with a custom error icon.
126+ </Alert >
130127
131- <Alert variant = " success" icon = { <CheckCircle2 className = " h-4 w-4" />} >
132- Alert with a custom success icon.
133- </Alert >
128+ <Alert variant = " success" icon = { <i className = " fa-regular fa-check h-4 w-4" />} >
129+ Alert with a custom success icon.
130+ </Alert >
134131
135- <Alert variant = " warning" icon = { <AlertTriangle className = " h-4 w-4" />} >
136- Alert with a custom warning icon.
137- </Alert >
132+ <Alert variant = " warning" icon = { <i className = " fa-regular fa-triangle-exclamation h-4 w-4" />} >
133+ Alert with a custom warning icon.
134+ </Alert >
138135
139- <Alert variant = " ppg" icon = { null } >
140- Alert without an icon.
141- </Alert >
136+ <Alert variant = " ppg" icon = { null } >
137+ Alert without an icon.
138+ </Alert >
142139</div >
143140
144141** Rich MDX Content**
0 commit comments