aural-ui 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/components/slider/Slider.stories.tsx +23 -22
  2. package/dist/components/slider/index.tsx +9 -3
  3. package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +952 -0
  4. package/dist/icons/apple-logo-icon/index.tsx +26 -0
  5. package/dist/icons/apple-logo-icon/meta.ts +8 -0
  6. package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +1008 -0
  7. package/dist/icons/arrow-left-icon/index.tsx +24 -0
  8. package/dist/icons/arrow-left-icon/meta.ts +8 -0
  9. package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +1050 -0
  10. package/dist/icons/backward-ten-seconds-icon/index.tsx +35 -0
  11. package/dist/icons/backward-ten-seconds-icon/meta.ts +8 -0
  12. package/dist/icons/camera-icon/CameraIcon.stories.tsx +1271 -0
  13. package/dist/icons/camera-icon/index.tsx +22 -0
  14. package/dist/icons/camera-icon/meta.ts +8 -0
  15. package/dist/icons/coin-icon/CoinIcon.stories.tsx +1382 -0
  16. package/dist/icons/coin-icon/index.tsx +36 -0
  17. package/dist/icons/coin-icon/meta.ts +8 -0
  18. package/dist/icons/email-icon/EmailIcon.stories.tsx +995 -0
  19. package/dist/icons/email-icon/index.tsx +22 -0
  20. package/dist/icons/email-icon/meta.ts +8 -0
  21. package/dist/icons/expand-icon/ExpandIcon.stories.tsx +1167 -0
  22. package/dist/icons/expand-icon/index.tsx +22 -0
  23. package/dist/icons/expand-icon/meta.ts +8 -0
  24. package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +1054 -0
  25. package/dist/icons/forward-ten-seconds-icon/index.tsx +33 -0
  26. package/dist/icons/forward-ten-seconds-icon/meta.ts +8 -0
  27. package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +1004 -0
  28. package/dist/icons/google-logo-icon/index.tsx +34 -0
  29. package/dist/icons/google-logo-icon/meta.ts +8 -0
  30. package/dist/icons/heart-icon/HeartIcon.stories.tsx +1080 -0
  31. package/dist/icons/heart-icon/index.tsx +21 -0
  32. package/dist/icons/heart-icon/meta.ts +8 -0
  33. package/dist/icons/index.ts +32 -4
  34. package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +1020 -0
  35. package/dist/icons/indian-flag-icon/index.tsx +46 -0
  36. package/dist/icons/indian-flag-icon/meta.ts +8 -0
  37. package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +1449 -0
  38. package/dist/icons/instagram-icon/index.tsx +17 -0
  39. package/dist/icons/instagram-icon/meta.ts +8 -0
  40. package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +1582 -0
  41. package/dist/icons/linked-in-icon/index.tsx +17 -0
  42. package/dist/icons/linked-in-icon/meta.ts +8 -0
  43. package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +1214 -0
  44. package/dist/icons/minimize-icon/index.tsx +22 -0
  45. package/dist/icons/minimize-icon/meta.ts +8 -0
  46. package/dist/icons/pause-icon/PauseIcon.stories.tsx +1060 -0
  47. package/dist/icons/pause-icon/index.tsx +30 -0
  48. package/dist/icons/pause-icon/meta.ts +8 -0
  49. package/dist/icons/share-icon/ShareIcon.stories.tsx +1081 -0
  50. package/dist/icons/share-icon/index.tsx +22 -0
  51. package/dist/icons/share-icon/meta.ts +8 -0
  52. package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +1047 -0
  53. package/dist/icons/skip-backward-icon/index.tsx +29 -0
  54. package/dist/icons/skip-backward-icon/meta.ts +8 -0
  55. package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +1049 -0
  56. package/dist/icons/skip-forward-icon/index.tsx +29 -0
  57. package/dist/icons/skip-forward-icon/meta.ts +8 -0
  58. package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +1020 -0
  59. package/dist/icons/store-coin-icon/index.tsx +35 -0
  60. package/dist/icons/store-coin-icon/meta.ts +8 -0
  61. package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +1489 -0
  62. package/dist/icons/threads-icon/index.tsx +17 -0
  63. package/dist/icons/threads-icon/meta.ts +8 -0
  64. package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +1463 -0
  65. package/dist/icons/twitter-x-icon/index.tsx +17 -0
  66. package/dist/icons/twitter-x-icon/meta.ts +8 -0
  67. package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +1105 -0
  68. package/dist/icons/video-play-list-icon/index.tsx +22 -0
  69. package/dist/icons/video-play-list-icon/meta.ts +8 -0
  70. package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +1416 -0
  71. package/dist/icons/voice-playing-icon/index.tsx +24 -0
  72. package/dist/icons/voice-playing-icon/meta.ts +8 -0
  73. package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +1230 -0
  74. package/dist/icons/volume-full-icon/index.tsx +25 -0
  75. package/dist/icons/volume-full-icon/meta.ts +8 -0
  76. package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +1153 -0
  77. package/dist/icons/volume-half-icon/index.tsx +25 -0
  78. package/dist/icons/volume-half-icon/meta.ts +8 -0
  79. package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +1144 -0
  80. package/dist/icons/volume-off-icon/index.tsx +26 -0
  81. package/dist/icons/volume-off-icon/meta.ts +8 -0
  82. package/dist/icons/warning-icon/WarningIcon.stories.tsx +1106 -0
  83. package/dist/icons/warning-icon/index.tsx +27 -0
  84. package/dist/icons/warning-icon/meta.ts +8 -0
  85. package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +996 -0
  86. package/dist/icons/youtube-icon/index.tsx +24 -0
  87. package/dist/icons/youtube-icon/meta.ts +8 -0
  88. package/dist/index.js +1 -1
  89. package/dist/styles/aural-theme.css +9 -0
  90. package/package.json +1 -1
@@ -0,0 +1,1081 @@
1
+ import React from "react"
2
+ import type { Meta, StoryObj } from "@storybook/react"
3
+
4
+ import { ShareIcon } from "."
5
+
6
+ const meta: Meta<typeof ShareIcon> = {
7
+ title: "Icons/ShareIcon",
8
+ component: ShareIcon,
9
+ parameters: {
10
+ layout: "fullscreen",
11
+ backgrounds: {
12
+ default: "dark",
13
+ values: [
14
+ { name: "dark", value: "#0a0a0a" },
15
+ { name: "darker", value: "#000000" },
16
+ { name: "light", value: "#ffffff" },
17
+ ],
18
+ },
19
+ docs: {
20
+ page: () => (
21
+ <>
22
+ {/* Override default docs styling */}
23
+ <style>
24
+ {`
25
+ .sbdocs-wrapper {
26
+ padding: 0 !important;
27
+ max-width: none !important;
28
+ background: transparent !important;
29
+ }
30
+ .sbdocs-content {
31
+ max-width: none !important;
32
+ padding: 0 !important;
33
+ margin: 0 !important;
34
+ background: transparent !important;
35
+ }
36
+ .docs-story {
37
+ background: transparent !important;
38
+ }
39
+ .sbdocs {
40
+ background: transparent !important;
41
+ }
42
+ body {
43
+ background: #0a0a0a !important;
44
+ }
45
+ #storybook-docs {
46
+ background: #0a0a0a !important;
47
+ }
48
+ .sbdocs-preview {
49
+ background: transparent !important;
50
+ border: none !important;
51
+ }
52
+ .sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
53
+ color: white !important;
54
+ }
55
+ .sbdocs-p, .sbdocs-li {
56
+ color: rgba(255, 255, 255, 0.7) !important;
57
+ }
58
+ .sbdocs-code {
59
+ background: rgba(255, 255, 255, 0.1) !important;
60
+ color: rgba(168, 85, 247, 1) !important;
61
+ border: 1px solid rgba(255, 255, 255, 0.1) !important;
62
+ }
63
+ .sbdocs-pre {
64
+ background: rgba(0, 0, 0, 0.4) !important;
65
+ border: 1px solid rgba(255, 255, 255, 0.1) !important;
66
+ }
67
+ .sbdocs-table {
68
+ background: rgba(255, 255, 255, 0.05) !important;
69
+ border: 1px solid rgba(255, 255, 255, 0.1) !important;
70
+ }
71
+ .sbdocs-table th {
72
+ background: rgba(255, 255, 255, 0.05) !important;
73
+ color: white !important;
74
+ border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
75
+ }
76
+ .sbdocs-table td {
77
+ color: rgba(255, 255, 255, 0.7) !important;
78
+ border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
79
+ }
80
+ `}
81
+ </style>
82
+
83
+ <div className="min-h-screen bg-gradient-to-br from-gray-900 via-blue-900/20 to-gray-900">
84
+ {/* Header */}
85
+ <div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
86
+ <div className="absolute inset-0 bg-gradient-to-r from-blue-500/10 via-transparent to-cyan-500/10" />
87
+ <div className="relative !mx-auto max-w-7xl px-6 py-16">
88
+ <div className="!space-y-6 text-center">
89
+ <div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border border-blue-500/30 bg-gradient-to-br from-blue-500/20 to-cyan-500/20">
90
+ <ShareIcon className="h-12 w-12 text-blue-400" />
91
+ </div>
92
+ <h1 className="!text-fm-primary text-5xl font-bold">
93
+ ShareIcon
94
+ </h1>
95
+ <p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
96
+ A versatile share icon for social sharing, content
97
+ distribution, and collaboration features. Built with
98
+ accessibility in mind using Radix UI's AccessibleIcon
99
+ wrapper.
100
+ </p>
101
+
102
+ {/* Stats */}
103
+ <div className="flex items-center justify-center gap-8 pt-8">
104
+ <div className="text-center">
105
+ <div className="text-3xl font-bold text-blue-300">
106
+ Accessible
107
+ </div>
108
+ <div className="text-sm text-white/60">
109
+ Screen reader friendly
110
+ </div>
111
+ </div>
112
+ <div className="h-8 w-px bg-white/20" />
113
+ <div className="text-center">
114
+ <div className="text-3xl font-bold text-cyan-300">
115
+ Scalable
116
+ </div>
117
+ <div className="text-sm text-white/60">
118
+ Any size needed
119
+ </div>
120
+ </div>
121
+ <div className="h-8 w-px bg-white/20" />
122
+ <div className="text-center">
123
+ <div className="text-3xl font-bold text-purple-300">
124
+ Flexible
125
+ </div>
126
+ <div className="text-sm text-white/60">
127
+ Customizable styling
128
+ </div>
129
+ </div>
130
+ </div>
131
+ </div>
132
+ </div>
133
+ </div>
134
+
135
+ {/* Content */}
136
+ <div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
137
+ {/* Quick Usage */}
138
+ <div className="!space-y-8">
139
+ <h2 className="text-center text-3xl font-bold !text-white">
140
+ Quick Start
141
+ </h2>
142
+ <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
143
+ <div className="!space-y-4">
144
+ <h3 className="text-xl font-semibold !text-blue-300">
145
+ Basic Usage
146
+ </h3>
147
+ <div className="rounded-lg bg-black/40 p-4">
148
+ <pre className="overflow-x-auto text-sm !text-green-300">
149
+ {`import { ShareIcon } from "@icons/share-icon"
150
+
151
+ function MyComponent() {
152
+ return (
153
+ <ShareIcon className="h-6 w-6 text-blue-500" />
154
+ )
155
+ }`}
156
+ </pre>
157
+ </div>
158
+ </div>
159
+
160
+ <div className="!space-y-4">
161
+ <h3 className="text-xl font-semibold !text-blue-300">
162
+ Live Preview
163
+ </h3>
164
+ <div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
165
+ <ShareIcon className="h-12 w-12 text-blue-400" />
166
+ </div>
167
+ </div>
168
+ </div>
169
+ </div>
170
+
171
+ {/* Props Documentation */}
172
+ <div className="!space-y-8">
173
+ <h2 className="text-center text-3xl font-bold !text-white">
174
+ Props & Configuration
175
+ </h2>
176
+
177
+ <div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
178
+ <div className="bg-white/5 p-4">
179
+ <h3 className="text-xl font-semibold !text-white">Props</h3>
180
+ </div>
181
+ <table className="!my-0 w-full">
182
+ <thead className="bg-white/5">
183
+ <tr className="border-b border-white/10">
184
+ <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
185
+ Prop
186
+ </th>
187
+ <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
188
+ Type
189
+ </th>
190
+ <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
191
+ Default
192
+ </th>
193
+ <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
194
+ Description
195
+ </th>
196
+ </tr>
197
+ </thead>
198
+ <tbody>
199
+ <tr className="border-b border-white/5">
200
+ <td className="px-6 py-4 font-mono text-sm !text-blue-300">
201
+ width
202
+ </td>
203
+ <td className="px-6 py-4 text-sm !text-white/70">
204
+ number | string
205
+ </td>
206
+ <td className="px-6 py-4 text-sm !text-white/50">24</td>
207
+ <td className="px-6 py-4 text-sm !text-white/70">
208
+ Width of the icon in pixels
209
+ </td>
210
+ </tr>
211
+ <tr className="border-b border-white/5 !bg-black/10">
212
+ <td className="px-6 py-4 font-mono text-sm !text-blue-300">
213
+ height
214
+ </td>
215
+ <td className="px-6 py-4 text-sm !text-white/70">
216
+ number | string
217
+ </td>
218
+ <td className="px-6 py-4 text-sm !text-white/50">24</td>
219
+ <td className="px-6 py-4 text-sm !text-white/70">
220
+ Height of the icon in pixels
221
+ </td>
222
+ </tr>
223
+ <tr className="border-b border-white/5">
224
+ <td className="px-6 py-4 font-mono text-sm !text-blue-300">
225
+ stroke
226
+ </td>
227
+ <td className="px-6 py-4 text-sm !text-white/70">
228
+ string
229
+ </td>
230
+ <td className="px-6 py-4 text-sm !text-white/50">
231
+ currentColor
232
+ </td>
233
+ <td className="px-6 py-4 text-sm !text-white/70">
234
+ Stroke color of the share icon
235
+ </td>
236
+ </tr>
237
+ <tr className="border-b border-white/5 !bg-black/10">
238
+ <td className="px-6 py-4 font-mono text-sm !text-blue-300">
239
+ strokeWidth
240
+ </td>
241
+ <td className="px-6 py-4 text-sm !text-white/70">
242
+ number | string
243
+ </td>
244
+ <td className="px-6 py-4 text-sm !text-white/50">
245
+ 1.5
246
+ </td>
247
+ <td className="px-6 py-4 text-sm !text-white/70">
248
+ Width of the stroke line
249
+ </td>
250
+ </tr>
251
+ <tr className="border-b border-white/5">
252
+ <td className="px-6 py-4 font-mono text-sm !text-blue-300">
253
+ strokeLinecap
254
+ </td>
255
+ <td className="px-6 py-4 text-sm !text-white/70">
256
+ string
257
+ </td>
258
+ <td className="px-6 py-4 text-sm !text-white/50">
259
+ square
260
+ </td>
261
+ <td className="px-6 py-4 text-sm !text-white/70">
262
+ Style of line endings
263
+ </td>
264
+ </tr>
265
+ <tr className="border-b border-white/5 !bg-black/10">
266
+ <td className="px-6 py-4 font-mono text-sm !text-blue-300">
267
+ className
268
+ </td>
269
+ <td className="px-6 py-4 text-sm !text-white/70">
270
+ string
271
+ </td>
272
+ <td className="px-6 py-4 text-sm !text-white/50">-</td>
273
+ <td className="px-6 py-4 text-sm !text-white/70">
274
+ CSS classes for styling
275
+ </td>
276
+ </tr>
277
+ <tr className="!bg-black/10">
278
+ <td className="px-6 py-4 font-mono text-sm !text-blue-300">
279
+ onClick
280
+ </td>
281
+ <td className="px-6 py-4 text-sm !text-white/70">
282
+ function
283
+ </td>
284
+ <td className="px-6 py-4 text-sm !text-white/50">-</td>
285
+ <td className="px-6 py-4 text-sm !text-white/70">
286
+ Click handler for interactions
287
+ </td>
288
+ </tr>
289
+ </tbody>
290
+ </table>
291
+ </div>
292
+
293
+ {/* Styling Options */}
294
+ <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
295
+ <div className="!space-y-4">
296
+ <h3 className="text-lg font-semibold !text-blue-300">
297
+ Share Button Styles
298
+ </h3>
299
+ <div className="!space-y-4">
300
+ <div className="flex gap-4">
301
+ <button className="flex items-center gap-2 rounded-lg border border-blue-500/30 bg-blue-500/20 px-4 py-2 text-blue-200">
302
+ <ShareIcon className="h-4 w-4" />
303
+ Share
304
+ </button>
305
+ <button className="rounded-lg p-2 text-blue-400 transition-colors hover:bg-blue-500/20">
306
+ <ShareIcon className="h-4 w-4" />
307
+ </button>
308
+ </div>
309
+ <div className="rounded-lg bg-black/40 p-4">
310
+ <pre className="overflow-x-auto text-sm !text-green-300">
311
+ {`// Button with text
312
+ <button className="flex items-center gap-2 bg-blue-500/20 border border-blue-500/30 px-4 py-2 rounded-lg">
313
+ <ShareIcon className="h-4 w-4" />
314
+ Share
315
+ </button>
316
+
317
+ // Icon only button
318
+ <button className="p-2 rounded-lg text-blue-400 hover:bg-blue-500/20 transition-colors">
319
+ <ShareIcon className="h-4 w-4" />
320
+ </button>`}
321
+ </pre>
322
+ </div>
323
+ </div>
324
+ </div>
325
+
326
+ <div className="!space-y-4">
327
+ <h3 className="text-lg font-semibold !text-blue-300">
328
+ Color Customization
329
+ </h3>
330
+ <div className="!space-y-4">
331
+ <div className="flex gap-4">
332
+ <ShareIcon className="h-6 w-6 text-blue-400" />
333
+ <ShareIcon className="h-6 w-6 text-cyan-400" />
334
+ <ShareIcon className="h-6 w-6 text-purple-400" />
335
+ </div>
336
+ <div className="rounded-lg bg-black/40 p-4">
337
+ <pre className="overflow-x-auto text-sm !text-green-300">
338
+ {`// Using Tailwind classes
339
+ <ShareIcon className="h-6 w-6 text-blue-400" />
340
+ <ShareIcon className="h-6 w-6 text-cyan-400" />
341
+
342
+ // Using CSS custom properties
343
+ <ShareIcon
344
+ className="h-6 w-6"
345
+ style={{ color: 'var(--color-share)' }}
346
+ />
347
+
348
+ // Direct stroke prop
349
+ <ShareIcon
350
+ width={24}
351
+ height={24}
352
+ stroke="#3b82f6"
353
+ />`}
354
+ </pre>
355
+ </div>
356
+ </div>
357
+ </div>
358
+ </div>
359
+ </div>
360
+
361
+ {/* Size Variations */}
362
+ <div className="!space-y-8">
363
+ <h2 className="text-center text-3xl font-bold !text-white">
364
+ Size Variations
365
+ </h2>
366
+ <div className="rounded-lg border border-white/10 bg-white/5 p-8">
367
+ <div className="!space-y-6">
368
+ <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
369
+ <div className="!space-y-4">
370
+ <h3 className="text-lg font-semibold !text-blue-300">
371
+ Standard Sizes
372
+ </h3>
373
+ <div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
374
+ <div className="text-center">
375
+ <ShareIcon className="!mx-auto mb-2 h-3 w-3 text-blue-400" />
376
+ <span className="text-xs text-white/60">12px</span>
377
+ </div>
378
+ <div className="text-center">
379
+ <ShareIcon className="!mx-auto mb-2 h-4 w-4 text-blue-400" />
380
+ <span className="text-xs text-white/60">16px</span>
381
+ </div>
382
+ <div className="text-center">
383
+ <ShareIcon className="!mx-auto mb-2 h-5 w-5 text-blue-400" />
384
+ <span className="text-xs text-white/60">20px</span>
385
+ </div>
386
+ <div className="text-center">
387
+ <ShareIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
388
+ <span className="text-xs text-white/60">24px</span>
389
+ </div>
390
+ <div className="text-center">
391
+ <ShareIcon className="!mx-auto mb-2 h-8 w-8 text-blue-400" />
392
+ <span className="text-xs text-white/60">32px</span>
393
+ </div>
394
+ <div className="text-center">
395
+ <ShareIcon className="!mx-auto mb-2 h-12 w-12 text-blue-400" />
396
+ <span className="text-xs text-white/60">48px</span>
397
+ </div>
398
+ </div>
399
+ </div>
400
+
401
+ <div className="!space-y-4">
402
+ <h3 className="text-lg font-semibold !text-blue-300">
403
+ Code Example
404
+ </h3>
405
+ <div className="rounded-lg bg-black/40 p-4">
406
+ <pre className="overflow-x-auto text-sm !text-blue-300">
407
+ {`// Small (16px)
408
+ <ShareIcon className="h-4 w-4" />
409
+
410
+ // Medium (24px)
411
+ <ShareIcon className="h-6 w-6" />
412
+
413
+ // Large (32px)
414
+ <ShareIcon className="h-8 w-8" />
415
+
416
+ // Custom size
417
+ <ShareIcon width={40} height={40} />`}
418
+ </pre>
419
+ </div>
420
+ </div>
421
+ </div>
422
+ </div>
423
+ </div>
424
+ </div>
425
+
426
+ {/* Color Variations */}
427
+ <div className="!space-y-8">
428
+ <h2 className="text-center text-3xl font-bold !text-white">
429
+ Color Variations
430
+ </h2>
431
+ <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
432
+ <div className="!space-y-4">
433
+ <h3 className="text-lg font-semibold !text-blue-300">
434
+ Semantic Colors
435
+ </h3>
436
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
437
+ <div className="flex items-center gap-4">
438
+ <ShareIcon className="h-6 w-6 text-blue-400" />
439
+ <div>
440
+ <div className="text-sm font-medium text-white">
441
+ Primary
442
+ </div>
443
+ <div className="text-xs text-white/60">
444
+ text-blue-400
445
+ </div>
446
+ </div>
447
+ </div>
448
+ <div className="flex items-center gap-4">
449
+ <ShareIcon className="h-6 w-6 text-cyan-400" />
450
+ <div>
451
+ <div className="text-sm font-medium text-white">
452
+ Social
453
+ </div>
454
+ <div className="text-xs text-white/60">
455
+ text-cyan-400
456
+ </div>
457
+ </div>
458
+ </div>
459
+ <div className="flex items-center gap-4">
460
+ <ShareIcon className="h-6 w-6 text-purple-400" />
461
+ <div>
462
+ <div className="text-sm font-medium text-white">
463
+ Creative
464
+ </div>
465
+ <div className="text-xs text-white/60">
466
+ text-purple-400
467
+ </div>
468
+ </div>
469
+ </div>
470
+ <div className="flex items-center gap-4">
471
+ <ShareIcon className="h-6 w-6 text-white/40" />
472
+ <div>
473
+ <div className="text-sm font-medium text-white">
474
+ Disabled
475
+ </div>
476
+ <div className="text-xs text-white/60">
477
+ text-white/40
478
+ </div>
479
+ </div>
480
+ </div>
481
+ </div>
482
+ </div>
483
+
484
+ <div className="!space-y-4">
485
+ <h3 className="text-lg font-semibold !text-blue-300">
486
+ Custom Colors
487
+ </h3>
488
+ <div className="rounded-lg bg-black/40 p-4">
489
+ <pre className="overflow-x-auto text-sm !text-green-300">
490
+ {`// Using Tailwind classes
491
+ <ShareIcon className="h-6 w-6 text-blue-400" />
492
+ <ShareIcon className="h-6 w-6 text-cyan-500" />
493
+
494
+ // Using CSS custom properties
495
+ <ShareIcon
496
+ className="h-6 w-6"
497
+ style={{ color: 'var(--color-share)' }}
498
+ />
499
+
500
+ // Direct stroke prop
501
+ <ShareIcon
502
+ width={24}
503
+ height={24}
504
+ stroke="#3b82f6"
505
+ />`}
506
+ </pre>
507
+ </div>
508
+ </div>
509
+ </div>
510
+ </div>
511
+
512
+ {/* Usage Examples */}
513
+ <div className="!space-y-8">
514
+ <h2 className="text-center text-3xl font-bold !text-white">
515
+ Usage Examples
516
+ </h2>
517
+
518
+ <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
519
+ {/* Share Button */}
520
+ <div className="!space-y-4">
521
+ <h3 className="text-lg font-semibold !text-blue-300">
522
+ Share Buttons
523
+ </h3>
524
+ <div className="!space-y-4">
525
+ <div className="flex gap-4">
526
+ <button className="flex items-center gap-2 rounded-lg border border-blue-500/30 bg-blue-500/20 px-4 py-2 text-blue-200 transition-colors hover:bg-blue-500/30">
527
+ <ShareIcon className="h-4 w-4" />
528
+ Share Post
529
+ </button>
530
+ <button className="flex items-center gap-2 rounded-lg border border-cyan-500/30 bg-cyan-500/20 px-3 py-2 text-cyan-200 transition-colors hover:bg-cyan-500/30">
531
+ <ShareIcon className="h-4 w-4" />
532
+ Share Link
533
+ </button>
534
+ </div>
535
+ <div className="rounded-lg bg-black/40 p-4">
536
+ <pre className="overflow-x-auto text-sm !text-green-300">
537
+ {`// Primary share button
538
+ <button className="flex items-center gap-2 bg-blue-500/20 border border-blue-500/30 px-4 py-2 rounded-lg">
539
+ <ShareIcon className="h-4 w-4" />
540
+ Share Post
541
+ </button>
542
+
543
+ // Secondary share button
544
+ <button className="flex items-center gap-2 bg-cyan-500/20 border border-cyan-500/30 px-3 py-2 rounded-lg">
545
+ <ShareIcon className="h-4 w-4" />
546
+ Share Link
547
+ </button>`}
548
+ </pre>
549
+ </div>
550
+ </div>
551
+ </div>
552
+
553
+ {/* Social Share Menu */}
554
+ <div className="!space-y-4">
555
+ <h3 className="text-lg font-semibold !text-blue-300">
556
+ Social Share Menu
557
+ </h3>
558
+ <div className="!space-y-4">
559
+ <div className="rounded-lg border border-white/10 bg-white/5 p-4">
560
+ <div className="mb-3 text-sm font-medium text-white">
561
+ Share this article
562
+ </div>
563
+ <div className="flex gap-3">
564
+ <button className="flex items-center gap-2 rounded-lg bg-blue-600 px-3 py-2 text-sm text-white transition-colors hover:bg-blue-700">
565
+ <span>📘</span>
566
+ Facebook
567
+ </button>
568
+ <button className="flex items-center gap-2 rounded-lg bg-black px-3 py-2 text-sm text-white transition-colors hover:bg-gray-800">
569
+ <span>𝕏</span>
570
+ Twitter
571
+ </button>
572
+ <button className="rounded-lg p-2 text-blue-400 transition-colors hover:bg-blue-500/20">
573
+ <ShareIcon className="h-4 w-4" />
574
+ </button>
575
+ </div>
576
+ </div>
577
+ <div className="rounded-lg bg-black/40 p-4">
578
+ <pre className="overflow-x-auto text-sm !text-green-300">
579
+ {`<div className="flex gap-3">
580
+ <button className="bg-blue-600 px-3 py-2 rounded-lg text-white">
581
+ Facebook
582
+ </button>
583
+ <button className="bg-black px-3 py-2 rounded-lg text-white">
584
+ Twitter
585
+ </button>
586
+ <button className="p-2 rounded-lg text-blue-400 hover:bg-blue-500/20 transition-colors">
587
+ <ShareIcon className="h-4 w-4" />
588
+ </button>
589
+ </div>`}
590
+ </pre>
591
+ </div>
592
+ </div>
593
+ </div>
594
+
595
+ {/* Content Card */}
596
+ <div className="!space-y-4">
597
+ <h3 className="text-lg font-semibold !text-blue-300">
598
+ Content Card Actions
599
+ </h3>
600
+ <div className="!space-y-4">
601
+ <div className="rounded-lg border border-white/10 bg-white/5 p-4">
602
+ <div className="mb-3">
603
+ <h4 className="mb-1 text-sm font-medium !text-white">
604
+ Building Better User Interfaces
605
+ </h4>
606
+ <p className="text-xs !text-white/60">
607
+ A comprehensive guide to modern design patterns
608
+ </p>
609
+ </div>
610
+ <div className="flex items-center justify-between">
611
+ <div className="flex items-center gap-4">
612
+ <span className="text-xs text-white/60">
613
+ 2 min read
614
+ </span>
615
+ <span className="text-xs text-white/60">•</span>
616
+ <span className="text-xs text-white/60">
617
+ Design
618
+ </span>
619
+ </div>
620
+ <button className="rounded-lg p-2 text-blue-400 transition-colors hover:bg-blue-500/20">
621
+ <ShareIcon className="h-4 w-4" />
622
+ </button>
623
+ </div>
624
+ </div>
625
+ <div className="rounded-lg bg-black/40 p-4">
626
+ <pre className="overflow-x-auto text-sm !text-green-300">
627
+ {`<div className="flex items-center justify-between">
628
+ <div className="flex items-center gap-4">
629
+ {/* Article metadata */}
630
+ </div>
631
+ <button className="p-2 rounded-lg text-blue-400 hover:bg-blue-500/20 transition-colors">
632
+ <ShareIcon className="h-4 w-4" />
633
+ </button>
634
+ </div>`}
635
+ </pre>
636
+ </div>
637
+ </div>
638
+ </div>
639
+
640
+ {/* Toolbar Action */}
641
+ <div className="!space-y-4">
642
+ <h3 className="text-lg font-semibold !text-blue-300">
643
+ Toolbar Actions
644
+ </h3>
645
+ <div className="!space-y-4">
646
+ <div className="rounded-lg border border-white/10 bg-white/5 p-4">
647
+ <div className="flex items-center justify-between rounded border border-white/10 bg-black/30 p-3">
648
+ <div className="flex items-center gap-3">
649
+ <span className="text-sm font-medium text-white">
650
+ Document.pdf
651
+ </span>
652
+ <span className="text-xs text-white/60">•</span>
653
+ <span className="text-xs text-white/60">
654
+ 2.4 MB
655
+ </span>
656
+ </div>
657
+ <div className="flex items-center gap-2">
658
+ <button className="rounded-lg p-2 text-gray-400 transition-colors hover:bg-blue-500/20 hover:text-blue-400">
659
+ <span className="text-sm">👁️</span>
660
+ </button>
661
+ <button className="rounded-lg p-2 text-gray-400 transition-colors hover:bg-blue-500/20 hover:text-blue-400">
662
+ <ShareIcon className="h-4 w-4" />
663
+ </button>
664
+ <button className="rounded-lg p-2 text-gray-400 transition-colors hover:bg-green-500/20 hover:text-green-400">
665
+ <span className="text-sm">⬇️</span>
666
+ </button>
667
+ </div>
668
+ </div>
669
+ </div>
670
+ <div className="rounded-lg bg-black/40 p-4">
671
+ <pre className="overflow-x-auto text-sm !text-green-300">
672
+ {`// File toolbar with share action
673
+ <div className="flex items-center gap-2">
674
+ <button className="p-2 rounded-lg text-gray-400 hover:bg-blue-500/20 hover:text-blue-400 transition-colors">
675
+ <ShareIcon className="h-4 w-4" />
676
+ </button>
677
+ </div>`}
678
+ </pre>
679
+ </div>
680
+ </div>
681
+ </div>
682
+ </div>
683
+ </div>
684
+
685
+ {/* Accessibility */}
686
+ <div className="!space-y-8">
687
+ <h2 className="text-center text-3xl font-bold !text-white">
688
+ Accessibility Features
689
+ </h2>
690
+ <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
691
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
692
+ <h3 className="text-lg font-semibold !text-green-300">
693
+ ✅ Built-in Features
694
+ </h3>
695
+ <ul className="!space-y-2 text-sm !text-white/70">
696
+ <li className="!text-white/70">
697
+ Uses Radix UI AccessibleIcon wrapper
698
+ </li>
699
+ <li className="!text-white/70">
700
+ Provides screen reader label "Share icon"
701
+ </li>
702
+ <li className="!text-white/70">
703
+ Supports keyboard navigation when interactive
704
+ </li>
705
+ <li className="!text-white/70">
706
+ Maintains proper color contrast ratios
707
+ </li>
708
+ <li className="!text-white/70">
709
+ Scales with user's font size preferences
710
+ </li>
711
+ </ul>
712
+ </div>
713
+
714
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
715
+ <h3 className="text-lg font-semibold !text-blue-300">
716
+ 💡 Best Practices
717
+ </h3>
718
+ <ul className="!space-y-2 text-sm text-white/70">
719
+ <li className="!text-white/70">
720
+ Always pair with descriptive labels
721
+ </li>
722
+ <li className="!text-white/70">
723
+ Provide clear feedback on share actions
724
+ </li>
725
+ <li className="!text-white/70">
726
+ Ensure sufficient color contrast
727
+ </li>
728
+ <li className="!text-white/70">
729
+ Add focus states for interactive elements
730
+ </li>
731
+ <li className="!text-white/70">
732
+ Consider providing share confirmation
733
+ </li>
734
+ </ul>
735
+ </div>
736
+ </div>
737
+
738
+ <div className="rounded-lg border border-white/10 bg-white/5 p-6">
739
+ <h3 className="mb-4 text-lg font-semibold !text-purple-300">
740
+ Custom Accessibility Label
741
+ </h3>
742
+ <div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
743
+ <div className="rounded-lg bg-black/40 p-4">
744
+ <pre className="overflow-x-auto text-sm !text-blue-300">
745
+ {`// Custom implementation with specific label
746
+ import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
747
+
748
+ function CustomShareIcon({ label = "Share", ...props }) {
749
+ return (
750
+ <AccessibleIcon label={label}>
751
+ <ShareIcon {...props} />
752
+ </AccessibleIcon>
753
+ )
754
+ }
755
+
756
+ // Usage with specific context
757
+ <CustomShareIcon
758
+ label="Share this article"
759
+ className="h-4 w-4 text-blue-400"
760
+ />`}
761
+ </pre>
762
+ </div>
763
+ <div className="!space-y-4">
764
+ <p className="text-sm !text-white/70">
765
+ For specific contexts, you can wrap the ShareIcon with a
766
+ custom AccessibleIcon component that provides more
767
+ descriptive labels.
768
+ </p>
769
+ <div className="rounded-lg border border-blue-500/20 bg-blue-500/10 p-4">
770
+ <div className="flex items-center gap-2 text-sm text-blue-200">
771
+ <ShareIcon className="h-4 w-4" />
772
+ <span>
773
+ This approach gives screen readers more context
774
+ </span>
775
+ </div>
776
+ </div>
777
+ </div>
778
+ </div>
779
+ </div>
780
+ </div>
781
+
782
+ {/* Related Icons */}
783
+ <div className="!space-y-8">
784
+ <h2 className="text-center text-3xl font-bold !text-white">
785
+ Related Icons
786
+ </h2>
787
+ <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
788
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
789
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
790
+ <span className="text-2xl">📤</span>
791
+ </div>
792
+ <div>
793
+ <div className="font-medium text-white">SendIcon</div>
794
+ <div className="text-xs text-white/60">Send messages</div>
795
+ </div>
796
+ </div>
797
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
798
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
799
+ <span className="!text-2xl !text-white">🔗</span>
800
+ </div>
801
+ <div>
802
+ <div className="font-medium text-white">LinkIcon</div>
803
+ <div className="text-xs text-white/60">Copy links</div>
804
+ </div>
805
+ </div>
806
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
807
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-orange-500/20">
808
+ <span className="text-2xl">📋</span>
809
+ </div>
810
+ <div>
811
+ <div className="font-medium text-white">CopyIcon</div>
812
+ <div className="text-xs text-white/60">Copy content</div>
813
+ </div>
814
+ </div>
815
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
816
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
817
+ <span className="text-2xl">📧</span>
818
+ </div>
819
+ <div>
820
+ <div className="font-medium text-white">EmailIcon</div>
821
+ <div className="text-xs text-white/60">Email sharing</div>
822
+ </div>
823
+ </div>
824
+ </div>
825
+ </div>
826
+ </div>
827
+
828
+ {/* Footer */}
829
+ <div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
830
+ <div className="!mx-auto max-w-7xl px-6 py-8">
831
+ <div className="!space-y-4 text-center">
832
+ <p className="!text-white/60">
833
+ ShareIcon is part of the Aural UI icon library, built with
834
+ accessibility and consistency in mind.
835
+ </p>
836
+ <p className="text-sm !text-white/40">
837
+ All icons use Radix UI's AccessibleIcon for screen reader
838
+ compatibility and follow WCAG guidelines.
839
+ </p>
840
+ </div>
841
+ </div>
842
+ </div>
843
+ </div>
844
+ </>
845
+ ),
846
+ },
847
+ },
848
+ tags: ["autodocs"],
849
+ argTypes: {
850
+ width: {
851
+ control: { type: "range", min: 8, max: 96, step: 2 },
852
+ description: "Width of the icon in pixels",
853
+ },
854
+ height: {
855
+ control: { type: "range", min: 8, max: 96, step: 2 },
856
+ description: "Height of the icon in pixels",
857
+ },
858
+ stroke: {
859
+ control: "color",
860
+ description: "Stroke color of the icon",
861
+ },
862
+ className: {
863
+ control: "text",
864
+ description: "CSS classes for styling",
865
+ },
866
+ },
867
+ }
868
+
869
+ export default meta
870
+ type Story = StoryObj<typeof ShareIcon>
871
+
872
+ // Story parameters for consistent dark theme
873
+ const storyParameters = {
874
+ backgrounds: {
875
+ default: "dark",
876
+ values: [
877
+ { name: "dark", value: "#0a0a0a" },
878
+ { name: "darker", value: "#000000" },
879
+ ],
880
+ },
881
+ }
882
+
883
+ export const Default: Story = {
884
+ args: {
885
+ width: 24,
886
+ height: 24,
887
+ className: "text-blue-400",
888
+ },
889
+ parameters: storyParameters,
890
+ render: (args) => (
891
+ <div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
892
+ <ShareIcon {...args} />
893
+ </div>
894
+ ),
895
+ }
896
+
897
+ export const SizeVariations: Story = {
898
+ parameters: {
899
+ ...storyParameters,
900
+ docs: {
901
+ description: {
902
+ story:
903
+ "ShareIcon in different sizes, from small UI elements to large displays.",
904
+ },
905
+ },
906
+ },
907
+ render: () => (
908
+ <div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
909
+ <div className="text-center">
910
+ <ShareIcon className="!mx-auto mb-2 h-3 w-3 text-blue-400" />
911
+ <span className="text-xs text-white/60">12px</span>
912
+ </div>
913
+ <div className="text-center">
914
+ <ShareIcon className="!mx-auto mb-2 h-4 w-4 text-blue-400" />
915
+ <span className="text-xs text-white/60">16px</span>
916
+ </div>
917
+ <div className="text-center">
918
+ <ShareIcon className="!mx-auto mb-2 h-5 w-5 text-blue-400" />
919
+ <span className="text-xs text-white/60">20px</span>
920
+ </div>
921
+ <div className="text-center">
922
+ <ShareIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
923
+ <span className="text-xs text-white/60">24px</span>
924
+ </div>
925
+ <div className="text-center">
926
+ <ShareIcon className="!mx-auto mb-2 h-8 w-8 text-blue-400" />
927
+ <span className="text-xs text-white/60">32px</span>
928
+ </div>
929
+ <div className="text-center">
930
+ <ShareIcon className="!mx-auto mb-2 h-12 w-12 text-blue-400" />
931
+ <span className="text-xs text-white/60">48px</span>
932
+ </div>
933
+ </div>
934
+ ),
935
+ }
936
+
937
+ export const ColorVariations: Story = {
938
+ parameters: {
939
+ ...storyParameters,
940
+ docs: {
941
+ description: {
942
+ story:
943
+ "ShareIcon in different semantic colors for various sharing contexts.",
944
+ },
945
+ },
946
+ },
947
+ render: () => (
948
+ <div className="grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8 md:grid-cols-4">
949
+ <div className="text-center">
950
+ <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-blue-500/30 bg-blue-500/20">
951
+ <ShareIcon className="h-8 w-8 text-blue-400" />
952
+ </div>
953
+ <div className="text-sm font-medium text-white">Primary</div>
954
+ <div className="text-xs text-blue-400">text-blue-400</div>
955
+ </div>
956
+ <div className="text-center">
957
+ <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-cyan-500/30 bg-cyan-500/20">
958
+ <ShareIcon className="h-8 w-8 text-cyan-400" />
959
+ </div>
960
+ <div className="text-sm font-medium text-white">Social</div>
961
+ <div className="text-xs text-cyan-400">text-cyan-400</div>
962
+ </div>
963
+ <div className="text-center">
964
+ <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-purple-500/30 bg-purple-500/20">
965
+ <ShareIcon className="h-8 w-8 text-purple-400" />
966
+ </div>
967
+ <div className="text-sm font-medium text-white">Creative</div>
968
+ <div className="text-xs text-purple-400">text-purple-400</div>
969
+ </div>
970
+ <div className="text-center">
971
+ <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-white/20 bg-white/5">
972
+ <ShareIcon className="h-8 w-8 text-white/40" />
973
+ </div>
974
+ <div className="text-sm font-medium text-white">Disabled</div>
975
+ <div className="text-xs text-white/40">text-white/40</div>
976
+ </div>
977
+ </div>
978
+ ),
979
+ }
980
+
981
+ export const UsageExamples: Story = {
982
+ parameters: {
983
+ ...storyParameters,
984
+ docs: {
985
+ description: {
986
+ story:
987
+ "Real-world usage examples showing ShareIcon in different UI contexts.",
988
+ },
989
+ },
990
+ },
991
+ render: () => (
992
+ <div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
993
+ {/* Share Buttons */}
994
+ <div className="!space-y-2">
995
+ <h3 className="text-sm font-medium text-white">Share Buttons</h3>
996
+ <div className="flex gap-4">
997
+ <button className="flex items-center gap-2 rounded-lg border border-blue-500/30 bg-blue-500/20 px-4 py-2 text-blue-200 transition-colors hover:bg-blue-500/30">
998
+ <ShareIcon className="h-4 w-4" />
999
+ Share Post
1000
+ </button>
1001
+ <button className="flex items-center gap-2 rounded-lg border border-cyan-500/30 bg-cyan-500/20 px-3 py-2 text-cyan-200 transition-colors hover:bg-cyan-500/30">
1002
+ <ShareIcon className="h-4 w-4" />
1003
+ Share Link
1004
+ </button>
1005
+ </div>
1006
+ </div>
1007
+
1008
+ {/* Social Share Menu */}
1009
+ <div className="!space-y-2">
1010
+ <h3 className="text-sm font-medium text-white">Social Share Menu</h3>
1011
+ <div className="rounded-lg border border-white/10 bg-white/5 p-4">
1012
+ <div className="mb-3 text-sm font-medium text-white">
1013
+ Share this article
1014
+ </div>
1015
+ <div className="flex gap-3">
1016
+ <button className="flex items-center gap-2 rounded-lg bg-blue-600 px-3 py-2 text-sm text-white transition-colors hover:bg-blue-700">
1017
+ <span>📘</span>
1018
+ Facebook
1019
+ </button>
1020
+ <button className="flex items-center gap-2 rounded-lg bg-black px-3 py-2 text-sm text-white transition-colors hover:bg-gray-800">
1021
+ <span>𝕏</span>
1022
+ Twitter
1023
+ </button>
1024
+ <button className="rounded-lg p-2 text-blue-400 transition-colors hover:bg-blue-500/20">
1025
+ <ShareIcon className="h-4 w-4" />
1026
+ </button>
1027
+ </div>
1028
+ </div>
1029
+ </div>
1030
+
1031
+ {/* Content Card */}
1032
+ <div className="!space-y-2">
1033
+ <h3 className="text-sm font-medium text-white">Content Card Actions</h3>
1034
+ <div className="rounded-lg border border-white/10 bg-white/5 p-4">
1035
+ <div className="mb-3">
1036
+ <h4 className="mb-1 text-sm font-medium !text-white">
1037
+ Building Better User Interfaces
1038
+ </h4>
1039
+ <p className="text-xs !text-white/60">
1040
+ A comprehensive guide to modern design patterns
1041
+ </p>
1042
+ </div>
1043
+ <div className="flex items-center justify-between">
1044
+ <div className="flex items-center gap-4">
1045
+ <span className="text-xs text-white/60">2 min read</span>
1046
+ <span className="text-xs text-white/60">•</span>
1047
+ <span className="text-xs text-white/60">Design</span>
1048
+ </div>
1049
+ <button className="rounded-lg p-2 text-blue-400 transition-colors hover:bg-blue-500/20">
1050
+ <ShareIcon className="h-4 w-4" />
1051
+ </button>
1052
+ </div>
1053
+ </div>
1054
+ </div>
1055
+ </div>
1056
+ ),
1057
+ }
1058
+
1059
+ export const Playground: Story = {
1060
+ parameters: {
1061
+ ...storyParameters,
1062
+ docs: {
1063
+ description: {
1064
+ story:
1065
+ "Interactive playground to experiment with different ShareIcon configurations.",
1066
+ },
1067
+ },
1068
+ },
1069
+ args: {
1070
+ width: 32,
1071
+ height: 32,
1072
+ className: "text-blue-400",
1073
+ },
1074
+ render: (args) => (
1075
+ <div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
1076
+ <div className="rounded-lg border border-white/10 bg-white/5 p-8">
1077
+ <ShareIcon {...args} />
1078
+ </div>
1079
+ </div>
1080
+ ),
1081
+ }