aural-ui 2.1.0 → 2.1.1

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 (88) hide show
  1. package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +952 -0
  2. package/dist/icons/apple-logo-icon/index.tsx +26 -0
  3. package/dist/icons/apple-logo-icon/meta.ts +8 -0
  4. package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +1008 -0
  5. package/dist/icons/arrow-left-icon/index.tsx +24 -0
  6. package/dist/icons/arrow-left-icon/meta.ts +8 -0
  7. package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +1050 -0
  8. package/dist/icons/backward-ten-seconds-icon/index.tsx +35 -0
  9. package/dist/icons/backward-ten-seconds-icon/meta.ts +8 -0
  10. package/dist/icons/camera-icon/CameraIcon.stories.tsx +1271 -0
  11. package/dist/icons/camera-icon/index.tsx +22 -0
  12. package/dist/icons/camera-icon/meta.ts +8 -0
  13. package/dist/icons/coin-icon/CoinIcon.stories.tsx +1382 -0
  14. package/dist/icons/coin-icon/index.tsx +36 -0
  15. package/dist/icons/coin-icon/meta.ts +8 -0
  16. package/dist/icons/email-icon/EmailIcon.stories.tsx +995 -0
  17. package/dist/icons/email-icon/index.tsx +22 -0
  18. package/dist/icons/email-icon/meta.ts +8 -0
  19. package/dist/icons/expand-icon/ExpandIcon.stories.tsx +1167 -0
  20. package/dist/icons/expand-icon/index.tsx +22 -0
  21. package/dist/icons/expand-icon/meta.ts +8 -0
  22. package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +1054 -0
  23. package/dist/icons/forward-ten-seconds-icon/index.tsx +33 -0
  24. package/dist/icons/forward-ten-seconds-icon/meta.ts +8 -0
  25. package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +1004 -0
  26. package/dist/icons/google-logo-icon/index.tsx +34 -0
  27. package/dist/icons/google-logo-icon/meta.ts +8 -0
  28. package/dist/icons/heart-icon/HeartIcon.stories.tsx +1080 -0
  29. package/dist/icons/heart-icon/index.tsx +21 -0
  30. package/dist/icons/heart-icon/meta.ts +8 -0
  31. package/dist/icons/index.ts +32 -4
  32. package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +1020 -0
  33. package/dist/icons/indian-flag-icon/index.tsx +46 -0
  34. package/dist/icons/indian-flag-icon/meta.ts +8 -0
  35. package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +1449 -0
  36. package/dist/icons/instagram-icon/index.tsx +17 -0
  37. package/dist/icons/instagram-icon/meta.ts +8 -0
  38. package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +1582 -0
  39. package/dist/icons/linked-in-icon/index.tsx +17 -0
  40. package/dist/icons/linked-in-icon/meta.ts +8 -0
  41. package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +1214 -0
  42. package/dist/icons/minimize-icon/index.tsx +22 -0
  43. package/dist/icons/minimize-icon/meta.ts +8 -0
  44. package/dist/icons/pause-icon/PauseIcon.stories.tsx +1060 -0
  45. package/dist/icons/pause-icon/index.tsx +30 -0
  46. package/dist/icons/pause-icon/meta.ts +8 -0
  47. package/dist/icons/share-icon/ShareIcon.stories.tsx +1081 -0
  48. package/dist/icons/share-icon/index.tsx +22 -0
  49. package/dist/icons/share-icon/meta.ts +8 -0
  50. package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +1047 -0
  51. package/dist/icons/skip-backward-icon/index.tsx +29 -0
  52. package/dist/icons/skip-backward-icon/meta.ts +8 -0
  53. package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +1049 -0
  54. package/dist/icons/skip-forward-icon/index.tsx +29 -0
  55. package/dist/icons/skip-forward-icon/meta.ts +8 -0
  56. package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +1020 -0
  57. package/dist/icons/store-coin-icon/index.tsx +35 -0
  58. package/dist/icons/store-coin-icon/meta.ts +8 -0
  59. package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +1489 -0
  60. package/dist/icons/threads-icon/index.tsx +17 -0
  61. package/dist/icons/threads-icon/meta.ts +8 -0
  62. package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +1463 -0
  63. package/dist/icons/twitter-x-icon/index.tsx +17 -0
  64. package/dist/icons/twitter-x-icon/meta.ts +8 -0
  65. package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +1105 -0
  66. package/dist/icons/video-play-list-icon/index.tsx +22 -0
  67. package/dist/icons/video-play-list-icon/meta.ts +8 -0
  68. package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +1416 -0
  69. package/dist/icons/voice-playing-icon/index.tsx +24 -0
  70. package/dist/icons/voice-playing-icon/meta.ts +8 -0
  71. package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +1230 -0
  72. package/dist/icons/volume-full-icon/index.tsx +25 -0
  73. package/dist/icons/volume-full-icon/meta.ts +8 -0
  74. package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +1153 -0
  75. package/dist/icons/volume-half-icon/index.tsx +25 -0
  76. package/dist/icons/volume-half-icon/meta.ts +8 -0
  77. package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +1144 -0
  78. package/dist/icons/volume-off-icon/index.tsx +26 -0
  79. package/dist/icons/volume-off-icon/meta.ts +8 -0
  80. package/dist/icons/warning-icon/WarningIcon.stories.tsx +1106 -0
  81. package/dist/icons/warning-icon/index.tsx +27 -0
  82. package/dist/icons/warning-icon/meta.ts +8 -0
  83. package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +996 -0
  84. package/dist/icons/youtube-icon/index.tsx +24 -0
  85. package/dist/icons/youtube-icon/meta.ts +8 -0
  86. package/dist/index.js +1 -1
  87. package/dist/styles/aural-theme.css +9 -0
  88. package/package.json +1 -1
@@ -0,0 +1,996 @@
1
+ import React from "react"
2
+ import type { Meta, StoryObj } from "@storybook/react"
3
+
4
+ import { YoutubeIcon } from "."
5
+
6
+ const meta: Meta<typeof YoutubeIcon> = {
7
+ title: "Icons/YoutubeIcon",
8
+ component: YoutubeIcon,
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-red-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-red-500/10 via-white/5 to-red-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-red-500/30 bg-gradient-to-br from-red-500/20 to-red-600/20">
90
+ <YoutubeIcon className="h-12 w-12 text-red-400" />
91
+ </div>
92
+ <h1 className="!text-fm-primary text-5xl font-bold">
93
+ YoutubeIcon
94
+ </h1>
95
+ <p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
96
+ The iconic YouTube logo for video content, social media
97
+ integration, and multimedia features. Built with
98
+ accessibility in mind using Radix UI's AccessibleIcon
99
+ wrapper for seamless screen reader support.
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-red-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-white">
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-red-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 { YoutubeIcon } from "@icons/youtube-icon"
150
+
151
+ function VideoCard() {
152
+ return (
153
+ <button className="flex items-center gap-2">
154
+ <YoutubeIcon className="h-5 w-5 text-red-500" />
155
+ <span>Watch on YouTube</span>
156
+ </button>
157
+ )
158
+ }`}
159
+ </pre>
160
+ </div>
161
+ </div>
162
+
163
+ <div className="!space-y-4">
164
+ <h3 className="text-xl font-semibold !text-red-300">
165
+ Live Preview
166
+ </h3>
167
+ <div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
168
+ <button className="flex items-center gap-3 rounded-lg border border-red-500/20 bg-red-500/10 px-4 py-2 transition-colors hover:bg-red-500/20">
169
+ <YoutubeIcon className="h-5 w-5 text-red-400" />
170
+ <span className="text-white">Watch on YouTube</span>
171
+ </button>
172
+ </div>
173
+ </div>
174
+ </div>
175
+ </div>
176
+
177
+ {/* Props Documentation */}
178
+ <div className="!space-y-8">
179
+ <h2 className="text-center text-3xl font-bold !text-white">
180
+ Props & Configuration
181
+ </h2>
182
+
183
+ <div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
184
+ <div className="bg-white/5 p-4">
185
+ <h3 className="text-xl font-semibold !text-white">Props</h3>
186
+ </div>
187
+ <table className="!my-0 w-full">
188
+ <thead className="bg-white/5">
189
+ <tr className="border-b border-white/10">
190
+ <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
191
+ Prop
192
+ </th>
193
+ <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
194
+ Type
195
+ </th>
196
+ <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
197
+ Default
198
+ </th>
199
+ <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
200
+ Description
201
+ </th>
202
+ </tr>
203
+ </thead>
204
+ <tbody>
205
+ <tr className="border-b border-white/5">
206
+ <td className="px-6 py-4 font-mono text-sm !text-red-300">
207
+ width
208
+ </td>
209
+ <td className="px-6 py-4 text-sm !text-white/70">
210
+ number | string
211
+ </td>
212
+ <td className="px-6 py-4 text-sm !text-white/50">24</td>
213
+ <td className="px-6 py-4 text-sm !text-white/70">
214
+ Width of the icon in pixels
215
+ </td>
216
+ </tr>
217
+ <tr className="border-b border-white/5 !bg-black/10">
218
+ <td className="px-6 py-4 font-mono text-sm !text-red-300">
219
+ height
220
+ </td>
221
+ <td className="px-6 py-4 text-sm !text-white/70">
222
+ number | string
223
+ </td>
224
+ <td className="px-6 py-4 text-sm !text-white/50">24</td>
225
+ <td className="px-6 py-4 text-sm !text-white/70">
226
+ Height of the icon in pixels
227
+ </td>
228
+ </tr>
229
+ <tr className="border-b border-white/5">
230
+ <td className="px-6 py-4 font-mono text-sm !text-red-300">
231
+ fill
232
+ </td>
233
+ <td className="px-6 py-4 text-sm !text-white/70">
234
+ string
235
+ </td>
236
+ <td className="px-6 py-4 text-sm !text-white/50">
237
+ currentColor
238
+ </td>
239
+ <td className="px-6 py-4 text-sm !text-white/70">
240
+ Fill color of the icon
241
+ </td>
242
+ </tr>
243
+ <tr className="border-b border-white/5 !bg-black/10">
244
+ <td className="px-6 py-4 font-mono text-sm !text-red-300">
245
+ className
246
+ </td>
247
+ <td className="px-6 py-4 text-sm !text-white/70">
248
+ string
249
+ </td>
250
+ <td className="px-6 py-4 text-sm !text-white/50">-</td>
251
+ <td className="px-6 py-4 text-sm !text-white/70">
252
+ CSS classes for styling
253
+ </td>
254
+ </tr>
255
+ <tr className="!bg-black/10">
256
+ <td className="px-6 py-4 font-mono text-sm !text-red-300">
257
+ ...svgProps
258
+ </td>
259
+ <td className="px-6 py-4 text-sm !text-white/70">
260
+ SVGProps
261
+ </td>
262
+ <td className="px-6 py-4 text-sm !text-white/50">-</td>
263
+ <td className="px-6 py-4 text-sm !text-white/70">
264
+ All standard SVG element props
265
+ </td>
266
+ </tr>
267
+ </tbody>
268
+ </table>
269
+ </div>
270
+ </div>
271
+
272
+ {/* Size Variations */}
273
+ <div className="!space-y-8">
274
+ <h2 className="text-center text-3xl font-bold !text-white">
275
+ Size Variations
276
+ </h2>
277
+ <div className="rounded-lg border border-white/10 bg-white/5 p-8">
278
+ <div className="!space-y-6">
279
+ <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
280
+ <div className="!space-y-4">
281
+ <h3 className="text-lg font-semibold !text-red-300">
282
+ Standard Sizes
283
+ </h3>
284
+ <div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
285
+ <div className="text-center">
286
+ <YoutubeIcon className="!mx-auto mb-2 h-3 w-3 text-red-400" />
287
+ <span className="text-xs text-white/60">12px</span>
288
+ </div>
289
+ <div className="text-center">
290
+ <YoutubeIcon className="!mx-auto mb-2 h-4 w-4 text-red-400" />
291
+ <span className="text-xs text-white/60">16px</span>
292
+ </div>
293
+ <div className="text-center">
294
+ <YoutubeIcon className="!mx-auto mb-2 h-5 w-5 text-red-400" />
295
+ <span className="text-xs text-white/60">20px</span>
296
+ </div>
297
+ <div className="text-center">
298
+ <YoutubeIcon className="!mx-auto mb-2 h-6 w-6 text-red-400" />
299
+ <span className="text-xs text-white/60">24px</span>
300
+ </div>
301
+ <div className="text-center">
302
+ <YoutubeIcon className="!mx-auto mb-2 h-8 w-8 text-red-400" />
303
+ <span className="text-xs text-white/60">32px</span>
304
+ </div>
305
+ <div className="text-center">
306
+ <YoutubeIcon className="!mx-auto mb-2 h-12 w-12 text-red-400" />
307
+ <span className="text-xs text-white/60">48px</span>
308
+ </div>
309
+ </div>
310
+ </div>
311
+
312
+ <div className="!space-y-4">
313
+ <h3 className="text-lg font-semibold !text-red-300">
314
+ Code Example
315
+ </h3>
316
+ <div className="rounded-lg bg-black/40 p-4">
317
+ <pre className="overflow-x-auto text-sm !text-blue-300">
318
+ {`// Small (16px)
319
+ <YoutubeIcon className="h-4 w-4" />
320
+
321
+ // Medium (24px)
322
+ <YoutubeIcon className="h-6 w-6" />
323
+
324
+ // Large (32px)
325
+ <YoutubeIcon className="h-8 w-8" />
326
+
327
+ // Custom size
328
+ <YoutubeIcon width={40} height={40} />`}
329
+ </pre>
330
+ </div>
331
+ </div>
332
+ </div>
333
+ </div>
334
+ </div>
335
+ </div>
336
+
337
+ {/* Color Variations */}
338
+ <div className="!space-y-8">
339
+ <h2 className="text-center text-3xl font-bold !text-white">
340
+ Color Variations
341
+ </h2>
342
+ <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
343
+ <div className="!space-y-4">
344
+ <h3 className="text-lg font-semibold !text-red-300">
345
+ Brand Colors
346
+ </h3>
347
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
348
+ <div className="flex items-center gap-4">
349
+ <YoutubeIcon className="h-6 w-6 text-red-500" />
350
+ <div>
351
+ <div className="text-sm font-medium text-white">
352
+ YouTube Red
353
+ </div>
354
+ <div className="text-xs text-white/60">
355
+ text-red-500
356
+ </div>
357
+ </div>
358
+ </div>
359
+ <div className="flex items-center gap-4">
360
+ <YoutubeIcon className="h-6 w-6 text-red-400" />
361
+ <div>
362
+ <div className="text-sm font-medium text-white">
363
+ Light Red
364
+ </div>
365
+ <div className="text-xs text-white/60">
366
+ text-red-400
367
+ </div>
368
+ </div>
369
+ </div>
370
+ <div className="flex items-center gap-4">
371
+ <YoutubeIcon className="h-6 w-6 text-white" />
372
+ <div>
373
+ <div className="text-sm font-medium text-white">
374
+ White
375
+ </div>
376
+ <div className="text-xs text-white/60">
377
+ text-white
378
+ </div>
379
+ </div>
380
+ </div>
381
+ <div className="flex items-center gap-4">
382
+ <YoutubeIcon className="h-6 w-6 text-gray-400" />
383
+ <div>
384
+ <div className="text-sm font-medium text-white">
385
+ Neutral
386
+ </div>
387
+ <div className="text-xs text-white/60">
388
+ text-gray-400
389
+ </div>
390
+ </div>
391
+ </div>
392
+ </div>
393
+ </div>
394
+
395
+ <div className="!space-y-4">
396
+ <h3 className="text-lg font-semibold !text-red-300">
397
+ Custom Colors
398
+ </h3>
399
+ <div className="rounded-lg bg-black/40 p-4">
400
+ <pre className="overflow-x-auto text-sm !text-green-300">
401
+ {`// Using Tailwind classes
402
+ <YoutubeIcon className="h-6 w-6 text-red-500" />
403
+ <YoutubeIcon className="h-6 w-6 text-white" />
404
+
405
+ // Using CSS custom properties
406
+ <YoutubeIcon
407
+ className="h-6 w-6"
408
+ style={{ color: 'var(--youtube-red)' }}
409
+ />
410
+
411
+ // Direct fill prop
412
+ <YoutubeIcon
413
+ width={24}
414
+ height={24}
415
+ fill="#ff0000"
416
+ />`}
417
+ </pre>
418
+ </div>
419
+ </div>
420
+ </div>
421
+ </div>
422
+
423
+ {/* Usage Examples */}
424
+ <div className="!space-y-8">
425
+ <h2 className="text-center text-3xl font-bold !text-white">
426
+ Usage Examples
427
+ </h2>
428
+
429
+ <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
430
+ {/* Video Actions */}
431
+ <div className="!space-y-4">
432
+ <h3 className="text-lg font-semibold !text-red-300">
433
+ Video Actions
434
+ </h3>
435
+ <div className="!space-y-4">
436
+ <div className="flex gap-4">
437
+ <button className="flex items-center gap-2 rounded-lg border border-red-500/30 bg-red-500/20 px-4 py-2 text-red-200 transition-colors hover:bg-red-500/30">
438
+ <YoutubeIcon className="h-4 w-4" />
439
+ Watch on YouTube
440
+ </button>
441
+ <button className="flex items-center gap-2 rounded-lg border border-white/20 bg-white/5 px-3 py-2 text-white transition-colors hover:bg-white/10">
442
+ <YoutubeIcon className="h-4 w-4" />
443
+ Share
444
+ </button>
445
+ </div>
446
+ <div className="rounded-lg bg-black/40 p-4">
447
+ <pre className="overflow-x-auto text-sm !text-green-300">
448
+ {`// Primary YouTube button
449
+ <button className="flex items-center gap-2 bg-red-500/20 border border-red-500/30 px-4 py-2 rounded-lg">
450
+ <YoutubeIcon className="h-4 w-4" />
451
+ Watch on YouTube
452
+ </button>
453
+
454
+ // Share button
455
+ <button className="flex items-center gap-2 bg-white/5 border border-white/20 px-3 py-2 rounded-lg">
456
+ <YoutubeIcon className="h-4 w-4" />
457
+ Share
458
+ </button>`}
459
+ </pre>
460
+ </div>
461
+ </div>
462
+ </div>
463
+
464
+ {/* Video Card */}
465
+ <div className="!space-y-4">
466
+ <h3 className="text-lg font-semibold !text-red-300">
467
+ Video Card
468
+ </h3>
469
+ <div className="!space-y-4">
470
+ <div className="rounded-lg border border-white/10 bg-white/5 p-4">
471
+ <div className="flex items-center justify-between">
472
+ <div className="flex items-center gap-3">
473
+ <div className="flex h-10 w-10 items-center justify-center rounded-lg bg-red-500/20">
474
+ <YoutubeIcon className="h-5 w-5 text-red-400" />
475
+ </div>
476
+ <div>
477
+ <div className="text-sm font-medium text-white">
478
+ Introduction to React
479
+ </div>
480
+ <div className="text-xs text-white/60">
481
+ 15:30 • 2.5M views
482
+ </div>
483
+ </div>
484
+ </div>
485
+ <button className="rounded-lg p-2 text-gray-400 transition-colors hover:bg-red-500/20 hover:text-red-400">
486
+ <YoutubeIcon className="h-4 w-4" />
487
+ </button>
488
+ </div>
489
+ </div>
490
+ <div className="rounded-lg bg-black/40 p-4">
491
+ <pre className="overflow-x-auto text-sm !text-green-300">
492
+ {`<div className="flex items-center justify-between">
493
+ <div className="flex items-center gap-3">
494
+ <div className="flex h-10 w-10 items-center justify-center rounded-lg bg-red-500/20">
495
+ <YoutubeIcon className="h-5 w-5 text-red-400" />
496
+ </div>
497
+ <div>
498
+ <div className="text-sm font-medium text-white">Introduction to React</div>
499
+ <div className="text-xs text-white/60">15:30 • 2.5M views</div>
500
+ </div>
501
+ </div>
502
+ <button className="p-2 rounded-lg text-gray-400 hover:bg-red-500/20 hover:text-red-400">
503
+ <YoutubeIcon className="h-4 w-4" />
504
+ </button>
505
+ </div>`}
506
+ </pre>
507
+ </div>
508
+ </div>
509
+ </div>
510
+
511
+ {/* Channel Subscribe */}
512
+ <div className="!space-y-4">
513
+ <h3 className="text-lg font-semibold !text-red-300">
514
+ Channel Subscribe
515
+ </h3>
516
+ <div className="!space-y-4">
517
+ <div className="rounded-lg border border-red-500/20 bg-red-500/5 p-6">
518
+ <div className="flex items-start gap-4">
519
+ <div className="flex h-12 w-12 items-center justify-center rounded-lg bg-red-500/20">
520
+ <YoutubeIcon className="h-6 w-6 text-red-400" />
521
+ </div>
522
+ <div className="flex-1">
523
+ <h4 className="mb-2 font-medium !text-white">
524
+ TechTalks Channel
525
+ </h4>
526
+ <p className="mb-4 text-sm !text-white/70">
527
+ Subscribe for the latest tech tutorials and
528
+ programming guides.
529
+ </p>
530
+ <div className="flex gap-3">
531
+ <button className="rounded-lg border border-red-500/30 bg-red-500/20 px-4 py-2 text-sm text-red-200">
532
+ Subscribe
533
+ </button>
534
+ <button className="rounded-lg border border-white/20 bg-white/5 px-4 py-2 text-sm text-white">
535
+ Visit Channel
536
+ </button>
537
+ </div>
538
+ </div>
539
+ </div>
540
+ </div>
541
+ <div className="rounded-lg bg-black/40 p-4">
542
+ <pre className="overflow-x-auto text-sm !text-green-300">
543
+ {`<div className="border border-red-500/20 bg-red-500/5 p-6 rounded-lg">
544
+ <div className="flex items-start gap-4">
545
+ <div className="flex h-12 w-12 items-center justify-center rounded-lg bg-red-500/20">
546
+ <YoutubeIcon className="h-6 w-6 text-red-400" />
547
+ </div>
548
+ <div className="flex-1">
549
+ <h4 className="font-medium text-white mb-2">TechTalks Channel</h4>
550
+ <p className="text-sm text-white/70 mb-4">
551
+ Subscribe for the latest tech tutorials.
552
+ </p>
553
+ {/* Action buttons */}
554
+ </div>
555
+ </div>
556
+ </div>`}
557
+ </pre>
558
+ </div>
559
+ </div>
560
+ </div>
561
+
562
+ {/* Social Links */}
563
+ <div className="!space-y-4">
564
+ <h3 className="text-lg font-semibold !text-red-300">
565
+ Social Media Links
566
+ </h3>
567
+ <div className="!space-y-4">
568
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4">
569
+ <div className="flex items-center gap-3 rounded px-3 py-2 text-sm hover:bg-white/10">
570
+ <YoutubeIcon className="h-4 w-4 text-red-400" />
571
+ <span className="text-white">YouTube Channel</span>
572
+ <span className="ml-auto text-xs text-white/60">
573
+ External
574
+ </span>
575
+ </div>
576
+ <div className="flex items-center gap-3 rounded px-3 py-2 text-sm hover:bg-white/10">
577
+ <YoutubeIcon className="h-4 w-4 text-red-400" />
578
+ <span className="text-white">Latest Videos</span>
579
+ </div>
580
+ <div className="flex items-center gap-3 rounded px-3 py-2 text-sm hover:bg-white/10">
581
+ <YoutubeIcon className="h-4 w-4 text-red-400" />
582
+ <span className="text-white">Playlists</span>
583
+ </div>
584
+ </div>
585
+ <div className="rounded-lg bg-black/40 p-4">
586
+ <pre className="overflow-x-auto text-sm !text-green-300">
587
+ {`// Social media navigation
588
+ <div className="flex items-center gap-3 px-3 py-2 text-sm hover:bg-white/10 rounded">
589
+ <YoutubeIcon className="h-4 w-4 text-red-400" />
590
+ <span className="text-white">YouTube Channel</span>
591
+ <span className="ml-auto text-xs text-white/60">External</span>
592
+ </div>`}
593
+ </pre>
594
+ </div>
595
+ </div>
596
+ </div>
597
+ </div>
598
+ </div>
599
+
600
+ {/* Accessibility */}
601
+ <div className="!space-y-8">
602
+ <h2 className="text-center text-3xl font-bold !text-white">
603
+ Accessibility Features
604
+ </h2>
605
+ <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
606
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
607
+ <h3 className="text-lg font-semibold !text-green-300">
608
+ ✅ Built-in Features
609
+ </h3>
610
+ <ul className="!space-y-2 text-sm !text-white/70">
611
+ <li className="!text-white/70">
612
+ Uses Radix UI AccessibleIcon wrapper
613
+ </li>
614
+ <li className="!text-white/70">
615
+ Provides screen reader label "Youtube icon"
616
+ </li>
617
+ <li className="!text-white/70">
618
+ Supports keyboard navigation when interactive
619
+ </li>
620
+ <li className="!text-white/70">
621
+ Maintains proper color contrast ratios
622
+ </li>
623
+ <li className="!text-white/70">
624
+ Scales with user's font size preferences
625
+ </li>
626
+ </ul>
627
+ </div>
628
+
629
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
630
+ <h3 className="text-lg font-semibold !text-red-300">
631
+ 💡 Best Practices
632
+ </h3>
633
+ <ul className="!space-y-2 text-sm text-white/70">
634
+ <li className="!text-white/70">
635
+ Always pair with descriptive text for actions
636
+ </li>
637
+ <li className="!text-white/70">
638
+ Use YouTube's brand red for authenticity
639
+ </li>
640
+ <li className="!text-white/70">
641
+ Ensure sufficient color contrast on backgrounds
642
+ </li>
643
+ <li className="!text-white/70">
644
+ Add focus states for interactive elements
645
+ </li>
646
+ <li className="!text-white/70">
647
+ Follow YouTube's brand guidelines for usage
648
+ </li>
649
+ </ul>
650
+ </div>
651
+ </div>
652
+
653
+ <div className="rounded-lg border border-white/10 bg-white/5 p-6">
654
+ <h3 className="mb-4 text-lg font-semibold !text-purple-300">
655
+ Custom Accessibility Label
656
+ </h3>
657
+ <div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
658
+ <div className="rounded-lg bg-black/40 p-4">
659
+ <pre className="overflow-x-auto text-sm !text-blue-300">
660
+ {`// Custom implementation with specific label
661
+ import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
662
+
663
+ function CustomYoutubeIcon({ label = "YouTube", ...props }) {
664
+ return (
665
+ <AccessibleIcon label={label}>
666
+ <YoutubeIcon {...props} />
667
+ </AccessibleIcon>
668
+ )
669
+ }
670
+
671
+ // Usage with specific context
672
+ <CustomYoutubeIcon
673
+ label="Watch video on YouTube"
674
+ className="h-5 w-5 text-red-400"
675
+ />`}
676
+ </pre>
677
+ </div>
678
+ <div className="!space-y-4">
679
+ <p className="text-sm !text-white/70">
680
+ For specific contexts, you can wrap the YoutubeIcon with
681
+ a custom AccessibleIcon component that provides more
682
+ descriptive labels for video actions and platform
683
+ navigation.
684
+ </p>
685
+ <div className="rounded-lg border border-red-500/20 bg-red-500/10 p-4">
686
+ <div className="flex items-center gap-2 text-sm text-red-200">
687
+ <YoutubeIcon className="h-4 w-4" />
688
+ <span>
689
+ This approach gives screen readers more context
690
+ </span>
691
+ </div>
692
+ </div>
693
+ </div>
694
+ </div>
695
+ </div>
696
+ </div>
697
+
698
+ {/* Related Icons */}
699
+ <div className="!space-y-8">
700
+ <h2 className="text-center text-3xl font-bold !text-white">
701
+ Related Icons
702
+ </h2>
703
+ <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
704
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
705
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
706
+ <span className="text-2xl">▶️</span>
707
+ </div>
708
+ <div>
709
+ <div className="font-medium text-white">PlayIcon</div>
710
+ <div className="text-xs text-white/60">
711
+ Video playback
712
+ </div>
713
+ </div>
714
+ </div>
715
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
716
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
717
+ <span className="text-2xl">🎥</span>
718
+ </div>
719
+ <div>
720
+ <div className="font-medium text-white">VideoIcon</div>
721
+ <div className="text-xs text-white/60">Video content</div>
722
+ </div>
723
+ </div>
724
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
725
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
726
+ <span className="text-2xl">🔗</span>
727
+ </div>
728
+ <div>
729
+ <div className="font-medium text-white">ShareIcon</div>
730
+ <div className="text-xs text-white/60">Share content</div>
731
+ </div>
732
+ </div>
733
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
734
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-orange-500/20">
735
+ <span className="text-2xl">📺</span>
736
+ </div>
737
+ <div>
738
+ <div className="font-medium text-white">ChannelIcon</div>
739
+ <div className="text-xs text-white/60">
740
+ Channel content
741
+ </div>
742
+ </div>
743
+ </div>
744
+ </div>
745
+ </div>
746
+ </div>
747
+
748
+ {/* Footer */}
749
+ <div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
750
+ <div className="!mx-auto max-w-7xl px-6 py-8">
751
+ <div className="!space-y-4 text-center">
752
+ <p className="!text-white/60">
753
+ YoutubeIcon is part of the Aural UI icon library, built with
754
+ accessibility and brand consistency in mind.
755
+ </p>
756
+ <p className="text-sm !text-white/40">
757
+ All icons use Radix UI's AccessibleIcon for screen reader
758
+ compatibility and follow WCAG guidelines.
759
+ </p>
760
+ </div>
761
+ </div>
762
+ </div>
763
+ </div>
764
+ </>
765
+ ),
766
+ },
767
+ },
768
+ tags: ["autodocs"],
769
+ argTypes: {
770
+ width: {
771
+ control: { type: "range", min: 8, max: 96, step: 2 },
772
+ description: "Width of the icon in pixels",
773
+ },
774
+ height: {
775
+ control: { type: "range", min: 8, max: 96, step: 2 },
776
+ description: "Height of the icon in pixels",
777
+ },
778
+ fill: {
779
+ control: "color",
780
+ description: "Fill color of the icon",
781
+ },
782
+ className: {
783
+ control: "text",
784
+ description: "CSS classes for styling",
785
+ },
786
+ },
787
+ }
788
+
789
+ export default meta
790
+ type Story = StoryObj<typeof YoutubeIcon>
791
+
792
+ // Story parameters for consistent dark theme
793
+ const storyParameters = {
794
+ backgrounds: {
795
+ default: "dark",
796
+ values: [
797
+ { name: "dark", value: "#0a0a0a" },
798
+ { name: "darker", value: "#000000" },
799
+ ],
800
+ },
801
+ }
802
+
803
+ export const Default: Story = {
804
+ args: {
805
+ width: 24,
806
+ height: 24,
807
+ className: "text-red-500",
808
+ },
809
+ parameters: storyParameters,
810
+ render: (args) => (
811
+ <div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
812
+ <YoutubeIcon {...args} />
813
+ </div>
814
+ ),
815
+ }
816
+
817
+ export const SizeVariations: Story = {
818
+ parameters: {
819
+ ...storyParameters,
820
+ docs: {
821
+ description: {
822
+ story:
823
+ "YoutubeIcon in different sizes, from small UI elements to large video displays.",
824
+ },
825
+ },
826
+ },
827
+ render: () => (
828
+ <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">
829
+ <div className="text-center">
830
+ <YoutubeIcon className="!mx-auto mb-2 h-3 w-3 text-red-400" />
831
+ <span className="text-xs text-white/60">12px</span>
832
+ </div>
833
+ <div className="text-center">
834
+ <YoutubeIcon className="!mx-auto mb-2 h-4 w-4 text-red-400" />
835
+ <span className="text-xs text-white/60">16px</span>
836
+ </div>
837
+ <div className="text-center">
838
+ <YoutubeIcon className="!mx-auto mb-2 h-5 w-5 text-red-400" />
839
+ <span className="text-xs text-white/60">20px</span>
840
+ </div>
841
+ <div className="text-center">
842
+ <YoutubeIcon className="!mx-auto mb-2 h-6 w-6 text-red-400" />
843
+ <span className="text-xs text-white/60">24px</span>
844
+ </div>
845
+ <div className="text-center">
846
+ <YoutubeIcon className="!mx-auto mb-2 h-8 w-8 text-red-400" />
847
+ <span className="text-xs text-white/60">32px</span>
848
+ </div>
849
+ <div className="text-center">
850
+ <YoutubeIcon className="!mx-auto mb-2 h-12 w-12 text-red-400" />
851
+ <span className="text-xs text-white/60">48px</span>
852
+ </div>
853
+ </div>
854
+ ),
855
+ }
856
+
857
+ export const ColorVariations: Story = {
858
+ parameters: {
859
+ ...storyParameters,
860
+ docs: {
861
+ description: {
862
+ story:
863
+ "YoutubeIcon in different brand and semantic colors for various contexts.",
864
+ },
865
+ },
866
+ },
867
+ render: () => (
868
+ <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">
869
+ <div className="text-center">
870
+ <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-red-500/30 bg-red-500/20">
871
+ <YoutubeIcon className="h-8 w-8 text-red-500" />
872
+ </div>
873
+ <div className="text-sm font-medium text-white">YouTube Red</div>
874
+ <div className="text-xs text-red-400">text-red-500</div>
875
+ </div>
876
+ <div className="text-center">
877
+ <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-red-400/30 bg-red-400/20">
878
+ <YoutubeIcon className="h-8 w-8 text-red-400" />
879
+ </div>
880
+ <div className="text-sm font-medium text-white">Light Red</div>
881
+ <div className="text-xs text-red-400">text-red-400</div>
882
+ </div>
883
+ <div className="text-center">
884
+ <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-white/30 bg-white/20">
885
+ <YoutubeIcon className="h-8 w-8 text-white" />
886
+ </div>
887
+ <div className="text-sm font-medium text-white">White</div>
888
+ <div className="text-xs text-white/60">text-white</div>
889
+ </div>
890
+ <div className="text-center">
891
+ <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-gray-500/30 bg-gray-500/20">
892
+ <YoutubeIcon className="h-8 w-8 text-gray-400" />
893
+ </div>
894
+ <div className="text-sm font-medium text-white">Neutral</div>
895
+ <div className="text-xs text-gray-400">text-gray-400</div>
896
+ </div>
897
+ </div>
898
+ ),
899
+ }
900
+
901
+ export const UsageExamples: Story = {
902
+ parameters: {
903
+ ...storyParameters,
904
+ docs: {
905
+ description: {
906
+ story:
907
+ "Real-world usage examples showing YoutubeIcon in different video and social media contexts.",
908
+ },
909
+ },
910
+ },
911
+ render: () => (
912
+ <div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
913
+ {/* Video Actions */}
914
+ <div className="!space-y-2">
915
+ <h3 className="text-sm font-medium text-white">Video Actions</h3>
916
+ <div className="flex gap-4">
917
+ <button className="flex items-center gap-2 rounded-lg border border-red-500/30 bg-red-500/20 px-4 py-2 text-red-200 transition-colors hover:bg-red-500/30">
918
+ <YoutubeIcon className="h-4 w-4" />
919
+ Watch on YouTube
920
+ </button>
921
+ <button className="flex items-center gap-2 rounded-lg border border-white/20 bg-white/5 px-3 py-2 text-white transition-colors hover:bg-white/10">
922
+ <YoutubeIcon className="h-4 w-4" />
923
+ Share
924
+ </button>
925
+ </div>
926
+ </div>
927
+
928
+ {/* Video Card */}
929
+ <div className="!space-y-2">
930
+ <h3 className="text-sm font-medium text-white">Video Card</h3>
931
+ <div className="rounded-lg border border-white/10 bg-white/5 p-4">
932
+ <div className="flex items-center justify-between">
933
+ <div className="flex items-center gap-3">
934
+ <div className="flex h-10 w-10 items-center justify-center rounded-lg bg-red-500/20">
935
+ <YoutubeIcon className="h-5 w-5 text-red-400" />
936
+ </div>
937
+ <div>
938
+ <div className="text-sm font-medium text-white">
939
+ Introduction to React
940
+ </div>
941
+ <div className="text-xs text-white/60">15:30 • 2.5M views</div>
942
+ </div>
943
+ </div>
944
+ <button className="rounded-lg p-2 text-gray-400 transition-colors hover:bg-red-500/20 hover:text-red-400">
945
+ <YoutubeIcon className="h-4 w-4" />
946
+ </button>
947
+ </div>
948
+ </div>
949
+ </div>
950
+
951
+ {/* Social Links */}
952
+ <div className="!space-y-2">
953
+ <h3 className="text-sm font-medium text-white">Social Media Links</h3>
954
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4">
955
+ <div className="flex items-center gap-3 rounded px-3 py-2 text-sm hover:bg-white/10">
956
+ <YoutubeIcon className="h-4 w-4 text-red-400" />
957
+ <span className="text-white">YouTube Channel</span>
958
+ <span className="ml-auto text-xs text-white/60">External</span>
959
+ </div>
960
+ <div className="flex items-center gap-3 rounded px-3 py-2 text-sm hover:bg-white/10">
961
+ <YoutubeIcon className="h-4 w-4 text-red-400" />
962
+ <span className="text-white">Latest Videos</span>
963
+ </div>
964
+ <div className="flex items-center gap-3 rounded px-3 py-2 text-sm hover:bg-white/10">
965
+ <YoutubeIcon className="h-4 w-4 text-red-400" />
966
+ <span className="text-white">Playlists</span>
967
+ </div>
968
+ </div>
969
+ </div>
970
+ </div>
971
+ ),
972
+ }
973
+
974
+ export const Playground: Story = {
975
+ parameters: {
976
+ ...storyParameters,
977
+ docs: {
978
+ description: {
979
+ story:
980
+ "Interactive playground to experiment with different YoutubeIcon configurations.",
981
+ },
982
+ },
983
+ },
984
+ args: {
985
+ width: 32,
986
+ height: 32,
987
+ className: "text-red-500",
988
+ },
989
+ render: (args) => (
990
+ <div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
991
+ <div className="rounded-lg border border-white/10 bg-white/5 p-8">
992
+ <YoutubeIcon {...args} />
993
+ </div>
994
+ </div>
995
+ ),
996
+ }