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