aural-ui 3.0.7 → 4.1.0
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/components/aspect-ratio/AspectRatio.stories.tsx +290 -1199
- package/dist/components/avatar/Avatar.stories.tsx +235 -237
- package/dist/components/badge/Badge.stories.tsx +379 -116
- package/dist/components/banner/Banner.stories.tsx +445 -391
- package/dist/components/breadcrumb/Breadcrumb.stories.tsx +453 -199
- package/dist/components/button/Button.stories.tsx +585 -230
- package/dist/components/button/index.tsx +7 -7
- package/dist/components/card/Card.stories.tsx +619 -301
- package/dist/components/char-count/CharCount.stories.tsx +350 -248
- package/dist/components/checkbox/Checkbox.stories.tsx +309 -167
- package/dist/components/chip/Chip.stories.tsx +362 -168
- package/dist/components/circular-loader/CircularLoader.stories.tsx +221 -620
- package/dist/components/clamp-lines/ClampLines.stories.tsx +246 -117
- package/dist/components/collapsible/Collapsible.stories.tsx +391 -252
- package/dist/components/command/Command.stories.tsx +533 -856
- package/dist/components/dialog/Dialog.stories.tsx +505 -949
- package/dist/components/divider/Divider.stories.tsx +265 -502
- package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
- package/dist/components/drawer/Drawer.stories.tsx +659 -993
- package/dist/components/drawer/index.tsx +3 -3
- package/dist/components/dropdown/Dropdown.stories.tsx +643 -1018
- package/dist/components/form/Form.stories.tsx +560 -274
- package/dist/components/helper-text/HelperText.stories.tsx +199 -200
- package/dist/components/hover-card/HoverCard.stories.tsx +318 -1221
- package/dist/components/icon-button/IconButton.stories.tsx +837 -194
- package/dist/components/if-else/if-else.stories.tsx +370 -83
- package/dist/components/input/Input.stories.tsx +436 -368
- package/dist/components/label/Label.stories.tsx +156 -154
- package/dist/components/list/List.stories.tsx +485 -822
- package/dist/components/marquee/Marquee.stories.tsx +356 -694
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -410
- package/dist/components/overlay/Overlay.stories.tsx +452 -818
- package/dist/components/overlay/index.tsx +4 -4
- package/dist/components/pagination/Pagination.stories.tsx +721 -210
- package/dist/components/popover/Popover.stories.tsx +484 -873
- package/dist/components/radio/Radio.stories.tsx +432 -124
- package/dist/components/resizable/Resizable.stories.tsx +496 -752
- package/dist/components/scroll-area/ScrollArea.stories.tsx +384 -1006
- package/dist/components/search/Search.stories.tsx +314 -575
- package/dist/components/select/Select.stories.tsx +684 -787
- package/dist/components/sheet/Sheet.stories.tsx +671 -936
- package/dist/components/skelton/Skelton.stories.tsx +230 -764
- package/dist/components/slider/Slider.stories.tsx +384 -737
- package/dist/components/stepper/Stepper.stories.tsx +371 -514
- package/dist/components/switch/Switch.stories.tsx +461 -208
- package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
- package/dist/components/table/Table.stories.tsx +770 -914
- package/dist/components/tabs/Tabs.stories.tsx +459 -1400
- package/dist/components/tag/Tag.stories.tsx +714 -542
- package/dist/components/textarea/TextArea.stories.tsx +621 -562
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -148
- package/dist/components/toast/Toast.stories.tsx +452 -1333
- package/dist/components/toggle/Toggle.stories.tsx +488 -909
- package/dist/components/tooltip/Tooltip.stories.tsx +344 -1372
- package/dist/components/typography/Typography.stories.tsx +406 -89
- package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
- package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
- package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
- package/dist/icons/Icons.stories.tsx +0 -12
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +226 -1013
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +109 -929
- package/dist/icons/all-icons.tsx +124 -87
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +140 -971
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +148 -888
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +135 -1019
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +137 -953
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +138 -997
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +136 -942
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +148 -1092
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +146 -1211
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +126 -615
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +144 -1164
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +167 -985
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +122 -1179
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +124 -1168
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +119 -850
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +112 -1213
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +117 -934
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +160 -961
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +163 -961
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +144 -942
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +129 -966
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +147 -964
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +145 -975
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +150 -1142
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +114 -461
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +124 -1322
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +117 -1318
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +114 -903
- package/dist/icons/command-icon/CommandIcon.stories.tsx +127 -1042
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +123 -962
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +147 -999
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +139 -960
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +126 -820
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +124 -1031
- package/dist/icons/email-icon/EmailIcon.stories.tsx +115 -936
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +112 -1111
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +144 -1025
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +143 -1036
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +127 -1011
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +126 -1056
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +125 -614
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +119 -1050
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +169 -989
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +115 -1145
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +115 -1122
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +130 -313
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +145 -940
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +119 -1174
- package/dist/icons/head-icon/HeadIcon.stories.tsx +111 -916
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +120 -1019
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +119 -683
- package/dist/icons/image-icon/ImageIcon.stories.tsx +105 -1121
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +111 -1192
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +136 -1256
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +159 -962
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +161 -1385
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +124 -972
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +119 -948
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +119 -942
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +108 -1215
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +154 -1517
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +110 -1188
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +119 -678
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +123 -1184
- package/dist/icons/message-icon/MessageIcon.stories.tsx +114 -538
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +116 -1158
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +120 -536
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +109 -1184
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +115 -1134
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +119 -971
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +111 -1100
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +119 -1101
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +109 -1111
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +122 -684
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +113 -954
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +112 -877
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +113 -1000
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +115 -1070
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +115 -978
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +106 -1093
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +107 -829
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +102 -469
- package/dist/icons/search-icon/SearchIcon.stories.tsx +111 -1124
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +107 -970
- package/dist/icons/share-icon/ShareIcon.stories.tsx +120 -1025
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +117 -931
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +137 -1104
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +172 -982
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +164 -983
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +105 -958
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +158 -580
- package/dist/icons/spinner-gradient-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +158 -587
- package/dist/icons/spinner-solid-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +146 -682
- package/dist/icons/spinner-solid-neutral-icon/index.tsx +1 -1
- package/dist/icons/star-icon/StarIcon.stories.tsx +124 -904
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +112 -964
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +116 -852
- package/dist/icons/sun-icon/SunIcon.stories.tsx +120 -831
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +116 -950
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +123 -980
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +156 -1427
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +146 -1142
- package/dist/icons/tick-icon/TickIcon.stories.tsx +145 -1276
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +108 -933
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +157 -1402
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +115 -889
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +118 -984
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +125 -1049
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +123 -1356
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +110 -1171
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +112 -1093
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +115 -1087
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +122 -1046
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +161 -936
- package/dist/index.cjs +84 -84
- package/dist/index.js +84 -84
- package/dist/styles/aural-all-theme.css +1222 -0
- package/dist/styles/{aural-theme.css → aural-dark-theme.css} +15 -3
- package/dist/styles/aural-light-theme.css +1047 -0
- package/package.json +1 -1
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
|
+
import { InstagramIcon } from "src/ui/icons/instagram-icon"
|
|
5
|
+
import { LinkedInIcon } from "src/ui/icons/linked-in-icon"
|
|
6
|
+
import { ThreadsIcon } from "src/ui/icons/threads-icon"
|
|
7
|
+
import { TwitterXIcon } from "src/ui/icons/twitter-x-icon"
|
|
8
|
+
import {
|
|
9
|
+
IconBrandColors,
|
|
10
|
+
IconDefaultCanvas,
|
|
11
|
+
IconPlaygroundCanvas,
|
|
12
|
+
IconSizeVariations,
|
|
13
|
+
IconUsageCanvas,
|
|
14
|
+
IconUsageSection,
|
|
15
|
+
} from "src/ui/story-spec/icons/icon-story-canvas"
|
|
16
|
+
import { AuralIconDocsPage } from "src/ui/story-spec/icons/icon-story-docs-page"
|
|
17
|
+
|
|
4
18
|
import { YoutubeIcon } from "."
|
|
5
19
|
|
|
6
20
|
const meta: Meta<typeof YoutubeIcon> = {
|
|
@@ -11,784 +25,75 @@ const meta: Meta<typeof YoutubeIcon> = {
|
|
|
11
25
|
backgrounds: {
|
|
12
26
|
default: "dark",
|
|
13
27
|
values: [
|
|
14
|
-
{ name: "dark", value: "
|
|
15
|
-
{ name: "darker", value: "
|
|
16
|
-
{ name: "light", value: "
|
|
28
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
29
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
30
|
+
{ name: "light", value: "var(--color-fm-neutral-1100)" },
|
|
17
31
|
],
|
|
18
32
|
},
|
|
19
33
|
docs: {
|
|
20
34
|
page: () => (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
{" "}
|
|
206
|
-
<tr className="!bg-black/10">
|
|
207
|
-
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
208
|
-
withAccessibility
|
|
209
|
-
</td>
|
|
210
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
211
|
-
boolean
|
|
212
|
-
</td>
|
|
213
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
214
|
-
true
|
|
215
|
-
</td>
|
|
216
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
217
|
-
Whether to wrap the icon with accessibility feature
|
|
218
|
-
</td>
|
|
219
|
-
</tr>
|
|
220
|
-
<tr className="border-b border-white/5 !bg-black/10">
|
|
221
|
-
<td className="px-6 py-4 font-mono text-sm !text-red-300">
|
|
222
|
-
height
|
|
223
|
-
</td>
|
|
224
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
225
|
-
number | string
|
|
226
|
-
</td>
|
|
227
|
-
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
228
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
229
|
-
Height of the icon in pixels
|
|
230
|
-
</td>
|
|
231
|
-
</tr>
|
|
232
|
-
<tr className="border-b border-white/5">
|
|
233
|
-
<td className="px-6 py-4 font-mono text-sm !text-red-300">
|
|
234
|
-
fill
|
|
235
|
-
</td>
|
|
236
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
237
|
-
string
|
|
238
|
-
</td>
|
|
239
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
240
|
-
currentColor
|
|
241
|
-
</td>
|
|
242
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
243
|
-
Fill color of the icon
|
|
244
|
-
</td>
|
|
245
|
-
</tr>
|
|
246
|
-
<tr className="border-b border-white/5 !bg-black/10">
|
|
247
|
-
<td className="px-6 py-4 font-mono text-sm !text-red-300">
|
|
248
|
-
className
|
|
249
|
-
</td>
|
|
250
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
251
|
-
string
|
|
252
|
-
</td>
|
|
253
|
-
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
254
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
255
|
-
CSS classes for styling
|
|
256
|
-
</td>
|
|
257
|
-
</tr>
|
|
258
|
-
<tr className="!bg-black/10">
|
|
259
|
-
<td className="px-6 py-4 font-mono text-sm !text-red-300">
|
|
260
|
-
...svgProps
|
|
261
|
-
</td>
|
|
262
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
263
|
-
SVGProps
|
|
264
|
-
</td>
|
|
265
|
-
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
266
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
267
|
-
All standard SVG element props
|
|
268
|
-
</td>
|
|
269
|
-
</tr>
|
|
270
|
-
</tbody>
|
|
271
|
-
</table>
|
|
272
|
-
</div>
|
|
273
|
-
</div>
|
|
274
|
-
|
|
275
|
-
{/* Size Variations */}
|
|
276
|
-
<div className="!space-y-8">
|
|
277
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
278
|
-
Size Variations
|
|
279
|
-
</h2>
|
|
280
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
281
|
-
<div className="!space-y-6">
|
|
282
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
283
|
-
<div className="!space-y-4">
|
|
284
|
-
<h3 className="text-lg font-semibold !text-red-300">
|
|
285
|
-
Standard Sizes
|
|
286
|
-
</h3>
|
|
287
|
-
<div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
|
|
288
|
-
<div className="text-center">
|
|
289
|
-
<YoutubeIcon className="!mx-auto mb-2 h-3 w-3 text-red-400" />
|
|
290
|
-
<span className="text-xs text-white/60">12px</span>
|
|
291
|
-
</div>
|
|
292
|
-
<div className="text-center">
|
|
293
|
-
<YoutubeIcon className="!mx-auto mb-2 h-4 w-4 text-red-400" />
|
|
294
|
-
<span className="text-xs text-white/60">16px</span>
|
|
295
|
-
</div>
|
|
296
|
-
<div className="text-center">
|
|
297
|
-
<YoutubeIcon className="!mx-auto mb-2 h-5 w-5 text-red-400" />
|
|
298
|
-
<span className="text-xs text-white/60">20px</span>
|
|
299
|
-
</div>
|
|
300
|
-
<div className="text-center">
|
|
301
|
-
<YoutubeIcon className="!mx-auto mb-2 h-6 w-6 text-red-400" />
|
|
302
|
-
<span className="text-xs text-white/60">24px</span>
|
|
303
|
-
</div>
|
|
304
|
-
<div className="text-center">
|
|
305
|
-
<YoutubeIcon className="!mx-auto mb-2 h-8 w-8 text-red-400" />
|
|
306
|
-
<span className="text-xs text-white/60">32px</span>
|
|
307
|
-
</div>
|
|
308
|
-
<div className="text-center">
|
|
309
|
-
<YoutubeIcon className="!mx-auto mb-2 h-12 w-12 text-red-400" />
|
|
310
|
-
<span className="text-xs text-white/60">48px</span>
|
|
311
|
-
</div>
|
|
312
|
-
</div>
|
|
313
|
-
</div>
|
|
314
|
-
|
|
315
|
-
<div className="!space-y-4">
|
|
316
|
-
<h3 className="text-lg font-semibold !text-red-300">
|
|
317
|
-
Code Example
|
|
318
|
-
</h3>
|
|
319
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
320
|
-
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
321
|
-
{`// Small (16px)
|
|
322
|
-
<YoutubeIcon className="h-4 w-4" />
|
|
323
|
-
|
|
324
|
-
// Medium (24px)
|
|
325
|
-
<YoutubeIcon className="h-6 w-6" />
|
|
326
|
-
|
|
327
|
-
// Large (32px)
|
|
328
|
-
<YoutubeIcon className="h-8 w-8" />
|
|
329
|
-
|
|
330
|
-
// Custom size
|
|
331
|
-
<YoutubeIcon width={40} height={40} />`}
|
|
332
|
-
</pre>
|
|
333
|
-
</div>
|
|
334
|
-
</div>
|
|
335
|
-
</div>
|
|
336
|
-
</div>
|
|
337
|
-
</div>
|
|
338
|
-
</div>
|
|
339
|
-
|
|
340
|
-
{/* Color Variations */}
|
|
341
|
-
<div className="!space-y-8">
|
|
342
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
343
|
-
Color Variations
|
|
344
|
-
</h2>
|
|
345
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
346
|
-
<div className="!space-y-4">
|
|
347
|
-
<h3 className="text-lg font-semibold !text-red-300">
|
|
348
|
-
Brand Colors
|
|
349
|
-
</h3>
|
|
350
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
351
|
-
<div className="flex items-center gap-4">
|
|
352
|
-
<YoutubeIcon className="h-6 w-6 text-red-500" />
|
|
353
|
-
<div>
|
|
354
|
-
<div className="text-sm font-medium text-white">
|
|
355
|
-
YouTube Red
|
|
356
|
-
</div>
|
|
357
|
-
<div className="text-xs text-white/60">
|
|
358
|
-
text-red-500
|
|
359
|
-
</div>
|
|
360
|
-
</div>
|
|
361
|
-
</div>
|
|
362
|
-
<div className="flex items-center gap-4">
|
|
363
|
-
<YoutubeIcon className="h-6 w-6 text-red-400" />
|
|
364
|
-
<div>
|
|
365
|
-
<div className="text-sm font-medium text-white">
|
|
366
|
-
Light Red
|
|
367
|
-
</div>
|
|
368
|
-
<div className="text-xs text-white/60">
|
|
369
|
-
text-red-400
|
|
370
|
-
</div>
|
|
371
|
-
</div>
|
|
372
|
-
</div>
|
|
373
|
-
<div className="flex items-center gap-4">
|
|
374
|
-
<YoutubeIcon className="h-6 w-6 text-white" />
|
|
375
|
-
<div>
|
|
376
|
-
<div className="text-sm font-medium text-white">
|
|
377
|
-
White
|
|
378
|
-
</div>
|
|
379
|
-
<div className="text-xs text-white/60">
|
|
380
|
-
text-white
|
|
381
|
-
</div>
|
|
382
|
-
</div>
|
|
383
|
-
</div>
|
|
384
|
-
<div className="flex items-center gap-4">
|
|
385
|
-
<YoutubeIcon className="h-6 w-6 text-gray-400" />
|
|
386
|
-
<div>
|
|
387
|
-
<div className="text-sm font-medium text-white">
|
|
388
|
-
Neutral
|
|
389
|
-
</div>
|
|
390
|
-
<div className="text-xs text-white/60">
|
|
391
|
-
text-gray-400
|
|
392
|
-
</div>
|
|
393
|
-
</div>
|
|
394
|
-
</div>
|
|
395
|
-
</div>
|
|
396
|
-
</div>
|
|
397
|
-
|
|
398
|
-
<div className="!space-y-4">
|
|
399
|
-
<h3 className="text-lg font-semibold !text-red-300">
|
|
400
|
-
Custom Colors
|
|
401
|
-
</h3>
|
|
402
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
403
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
404
|
-
{`// Using Tailwind classes
|
|
405
|
-
<YoutubeIcon className="h-6 w-6 text-red-500" />
|
|
406
|
-
<YoutubeIcon className="h-6 w-6 text-white" />
|
|
407
|
-
|
|
408
|
-
// Using CSS custom properties
|
|
409
|
-
<YoutubeIcon
|
|
410
|
-
className="h-6 w-6"
|
|
411
|
-
style={{ color: 'var(--youtube-red)' }}
|
|
412
|
-
/>
|
|
413
|
-
|
|
414
|
-
// Direct fill prop
|
|
415
|
-
<YoutubeIcon
|
|
416
|
-
width={24}
|
|
417
|
-
height={24}
|
|
418
|
-
fill="#ff0000"
|
|
419
|
-
/>`}
|
|
420
|
-
</pre>
|
|
421
|
-
</div>
|
|
422
|
-
</div>
|
|
423
|
-
</div>
|
|
424
|
-
</div>
|
|
425
|
-
|
|
426
|
-
{/* Usage Examples */}
|
|
427
|
-
<div className="!space-y-8">
|
|
428
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
429
|
-
Usage Examples
|
|
430
|
-
</h2>
|
|
431
|
-
|
|
432
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
433
|
-
{/* Video Actions */}
|
|
434
|
-
<div className="!space-y-4">
|
|
435
|
-
<h3 className="text-lg font-semibold !text-red-300">
|
|
436
|
-
Video Actions
|
|
437
|
-
</h3>
|
|
438
|
-
<div className="!space-y-4">
|
|
439
|
-
<div className="flex gap-4">
|
|
440
|
-
<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">
|
|
441
|
-
<YoutubeIcon className="h-4 w-4" />
|
|
442
|
-
Watch on YouTube
|
|
443
|
-
</button>
|
|
444
|
-
<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">
|
|
445
|
-
<YoutubeIcon className="h-4 w-4" />
|
|
446
|
-
Share
|
|
447
|
-
</button>
|
|
448
|
-
</div>
|
|
449
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
450
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
451
|
-
{`// Primary YouTube button
|
|
452
|
-
<button className="flex items-center gap-2 bg-red-500/20 border border-red-500/30 px-4 py-2 rounded-lg">
|
|
453
|
-
<YoutubeIcon className="h-4 w-4" />
|
|
454
|
-
Watch on YouTube
|
|
455
|
-
</button>
|
|
456
|
-
|
|
457
|
-
// Share button
|
|
458
|
-
<button className="flex items-center gap-2 bg-white/5 border border-white/20 px-3 py-2 rounded-lg">
|
|
459
|
-
<YoutubeIcon className="h-4 w-4" />
|
|
460
|
-
Share
|
|
461
|
-
</button>`}
|
|
462
|
-
</pre>
|
|
463
|
-
</div>
|
|
464
|
-
</div>
|
|
465
|
-
</div>
|
|
466
|
-
|
|
467
|
-
{/* Video Card */}
|
|
468
|
-
<div className="!space-y-4">
|
|
469
|
-
<h3 className="text-lg font-semibold !text-red-300">
|
|
470
|
-
Video Card
|
|
471
|
-
</h3>
|
|
472
|
-
<div className="!space-y-4">
|
|
473
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
474
|
-
<div className="flex items-center justify-between">
|
|
475
|
-
<div className="flex items-center gap-3">
|
|
476
|
-
<div className="flex h-10 w-10 items-center justify-center rounded-lg bg-red-500/20">
|
|
477
|
-
<YoutubeIcon className="h-5 w-5 text-red-400" />
|
|
478
|
-
</div>
|
|
479
|
-
<div>
|
|
480
|
-
<div className="text-sm font-medium text-white">
|
|
481
|
-
Introduction to React
|
|
482
|
-
</div>
|
|
483
|
-
<div className="text-xs text-white/60">
|
|
484
|
-
15:30 • 2.5M views
|
|
485
|
-
</div>
|
|
486
|
-
</div>
|
|
487
|
-
</div>
|
|
488
|
-
<button className="rounded-lg p-2 text-gray-400 transition-colors hover:bg-red-500/20 hover:text-red-400">
|
|
489
|
-
<YoutubeIcon className="h-4 w-4" />
|
|
490
|
-
</button>
|
|
491
|
-
</div>
|
|
492
|
-
</div>
|
|
493
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
494
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
495
|
-
{`<div className="flex items-center justify-between">
|
|
496
|
-
<div className="flex items-center gap-3">
|
|
497
|
-
<div className="flex h-10 w-10 items-center justify-center rounded-lg bg-red-500/20">
|
|
498
|
-
<YoutubeIcon className="h-5 w-5 text-red-400" />
|
|
499
|
-
</div>
|
|
500
|
-
<div>
|
|
501
|
-
<div className="text-sm font-medium text-white">Introduction to React</div>
|
|
502
|
-
<div className="text-xs text-white/60">15:30 • 2.5M views</div>
|
|
503
|
-
</div>
|
|
504
|
-
</div>
|
|
505
|
-
<button className="p-2 rounded-lg text-gray-400 hover:bg-red-500/20 hover:text-red-400">
|
|
506
|
-
<YoutubeIcon className="h-4 w-4" />
|
|
507
|
-
</button>
|
|
508
|
-
</div>`}
|
|
509
|
-
</pre>
|
|
510
|
-
</div>
|
|
511
|
-
</div>
|
|
512
|
-
</div>
|
|
513
|
-
|
|
514
|
-
{/* Channel Subscribe */}
|
|
515
|
-
<div className="!space-y-4">
|
|
516
|
-
<h3 className="text-lg font-semibold !text-red-300">
|
|
517
|
-
Channel Subscribe
|
|
518
|
-
</h3>
|
|
519
|
-
<div className="!space-y-4">
|
|
520
|
-
<div className="rounded-lg border border-red-500/20 bg-red-500/5 p-6">
|
|
521
|
-
<div className="flex items-start gap-4">
|
|
522
|
-
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-red-500/20">
|
|
523
|
-
<YoutubeIcon className="h-6 w-6 text-red-400" />
|
|
524
|
-
</div>
|
|
525
|
-
<div className="flex-1">
|
|
526
|
-
<h4 className="mb-2 font-medium !text-white">
|
|
527
|
-
TechTalks Channel
|
|
528
|
-
</h4>
|
|
529
|
-
<p className="mb-4 text-sm !text-white/70">
|
|
530
|
-
Subscribe for the latest tech tutorials and
|
|
531
|
-
programming guides.
|
|
532
|
-
</p>
|
|
533
|
-
<div className="flex gap-3">
|
|
534
|
-
<button className="rounded-lg border border-red-500/30 bg-red-500/20 px-4 py-2 text-sm text-red-200">
|
|
535
|
-
Subscribe
|
|
536
|
-
</button>
|
|
537
|
-
<button className="rounded-lg border border-white/20 bg-white/5 px-4 py-2 text-sm text-white">
|
|
538
|
-
Visit Channel
|
|
539
|
-
</button>
|
|
540
|
-
</div>
|
|
541
|
-
</div>
|
|
542
|
-
</div>
|
|
543
|
-
</div>
|
|
544
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
545
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
546
|
-
{`<div className="border border-red-500/20 bg-red-500/5 p-6 rounded-lg">
|
|
547
|
-
<div className="flex items-start gap-4">
|
|
548
|
-
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-red-500/20">
|
|
549
|
-
<YoutubeIcon className="h-6 w-6 text-red-400" />
|
|
550
|
-
</div>
|
|
551
|
-
<div className="flex-1">
|
|
552
|
-
<h4 className="font-medium text-white mb-2">TechTalks Channel</h4>
|
|
553
|
-
<p className="text-sm text-white/70 mb-4">
|
|
554
|
-
Subscribe for the latest tech tutorials.
|
|
555
|
-
</p>
|
|
556
|
-
{/* Action buttons */}
|
|
557
|
-
</div>
|
|
558
|
-
</div>
|
|
559
|
-
</div>`}
|
|
560
|
-
</pre>
|
|
561
|
-
</div>
|
|
562
|
-
</div>
|
|
563
|
-
</div>
|
|
564
|
-
|
|
565
|
-
{/* Social Links */}
|
|
566
|
-
<div className="!space-y-4">
|
|
567
|
-
<h3 className="text-lg font-semibold !text-red-300">
|
|
568
|
-
Social Media Links
|
|
569
|
-
</h3>
|
|
570
|
-
<div className="!space-y-4">
|
|
571
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4">
|
|
572
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm hover:bg-white/10">
|
|
573
|
-
<YoutubeIcon className="h-4 w-4 text-red-400" />
|
|
574
|
-
<span className="text-white">YouTube Channel</span>
|
|
575
|
-
<span className="ml-auto text-xs text-white/60">
|
|
576
|
-
External
|
|
577
|
-
</span>
|
|
578
|
-
</div>
|
|
579
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm hover:bg-white/10">
|
|
580
|
-
<YoutubeIcon className="h-4 w-4 text-red-400" />
|
|
581
|
-
<span className="text-white">Latest Videos</span>
|
|
582
|
-
</div>
|
|
583
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm hover:bg-white/10">
|
|
584
|
-
<YoutubeIcon className="h-4 w-4 text-red-400" />
|
|
585
|
-
<span className="text-white">Playlists</span>
|
|
586
|
-
</div>
|
|
587
|
-
</div>
|
|
588
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
589
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
590
|
-
{`// Social media navigation
|
|
591
|
-
<div className="flex items-center gap-3 px-3 py-2 text-sm hover:bg-white/10 rounded">
|
|
592
|
-
<YoutubeIcon className="h-4 w-4 text-red-400" />
|
|
593
|
-
<span className="text-white">YouTube Channel</span>
|
|
594
|
-
<span className="ml-auto text-xs text-white/60">External</span>
|
|
595
|
-
</div>`}
|
|
596
|
-
</pre>
|
|
597
|
-
</div>
|
|
598
|
-
</div>
|
|
599
|
-
</div>
|
|
600
|
-
</div>
|
|
601
|
-
</div>
|
|
602
|
-
|
|
603
|
-
{/* Accessibility */}
|
|
604
|
-
<div className="!space-y-8">
|
|
605
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
606
|
-
Accessibility Features
|
|
607
|
-
</h2>
|
|
608
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
609
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
610
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
611
|
-
✅ Built-in Features
|
|
612
|
-
</h3>
|
|
613
|
-
<ul className="!space-y-2 text-sm !text-white/70">
|
|
614
|
-
<li className="!text-white/70">
|
|
615
|
-
Uses Radix UI AccessibleIcon wrapper
|
|
616
|
-
</li>
|
|
617
|
-
<li className="!text-white/70">
|
|
618
|
-
Provides screen reader label "Youtube icon"
|
|
619
|
-
</li>
|
|
620
|
-
<li className="!text-white/70">
|
|
621
|
-
Supports keyboard navigation when interactive
|
|
622
|
-
</li>
|
|
623
|
-
<li className="!text-white/70">
|
|
624
|
-
Maintains proper color contrast ratios
|
|
625
|
-
</li>
|
|
626
|
-
<li className="!text-white/70">
|
|
627
|
-
Scales with user's font size preferences
|
|
628
|
-
</li>
|
|
629
|
-
</ul>
|
|
630
|
-
</div>
|
|
631
|
-
|
|
632
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
633
|
-
<h3 className="text-lg font-semibold !text-red-300">
|
|
634
|
-
💡 Best Practices
|
|
635
|
-
</h3>
|
|
636
|
-
<ul className="!space-y-2 text-sm text-white/70">
|
|
637
|
-
<li className="!text-white/70">
|
|
638
|
-
Always pair with descriptive text for actions
|
|
639
|
-
</li>
|
|
640
|
-
<li className="!text-white/70">
|
|
641
|
-
Use YouTube's brand red for authenticity
|
|
642
|
-
</li>
|
|
643
|
-
<li className="!text-white/70">
|
|
644
|
-
Ensure sufficient color contrast on backgrounds
|
|
645
|
-
</li>
|
|
646
|
-
<li className="!text-white/70">
|
|
647
|
-
Add focus states for interactive elements
|
|
648
|
-
</li>
|
|
649
|
-
<li className="!text-white/70">
|
|
650
|
-
Follow YouTube's brand guidelines for usage
|
|
651
|
-
</li>
|
|
652
|
-
</ul>
|
|
653
|
-
</div>
|
|
654
|
-
</div>
|
|
655
|
-
|
|
656
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
657
|
-
<h3 className="mb-4 text-lg font-semibold !text-purple-300">
|
|
658
|
-
Custom Accessibility Label
|
|
659
|
-
</h3>
|
|
660
|
-
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
661
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
662
|
-
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
663
|
-
{`// Custom implementation with specific label
|
|
664
|
-
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
665
|
-
|
|
666
|
-
function CustomYoutubeIcon({ label = "YouTube", ...props }) {
|
|
35
|
+
<AuralIconDocsPage
|
|
36
|
+
accentToken="negative"
|
|
37
|
+
features={[
|
|
38
|
+
{ title: "Brand Mark", description: "YouTube identity icon" },
|
|
39
|
+
{ title: "Video Platform", description: "Channel and video links" },
|
|
40
|
+
{ title: "Accessible", description: "ARIA-ready by default" },
|
|
41
|
+
]}
|
|
42
|
+
quickStart={{
|
|
43
|
+
codeExample: `import { YoutubeIcon } from "src/ui/icons/youtube-icon"
|
|
44
|
+
|
|
45
|
+
function YouTubeLink() {
|
|
667
46
|
return (
|
|
668
|
-
<
|
|
669
|
-
<YoutubeIcon
|
|
670
|
-
</
|
|
47
|
+
<a href="https://youtube.com/@channel" target="_blank">
|
|
48
|
+
<YoutubeIcon className="h-5 w-5 text-fm-icon-negative" />
|
|
49
|
+
</a>
|
|
671
50
|
)
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
<
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
707
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
708
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
|
|
709
|
-
<span className="text-2xl">▶️</span>
|
|
710
|
-
</div>
|
|
711
|
-
<div>
|
|
712
|
-
<div className="font-medium text-white">PlayIcon</div>
|
|
713
|
-
<div className="text-xs text-white/60">
|
|
714
|
-
Video playback
|
|
715
|
-
</div>
|
|
716
|
-
</div>
|
|
717
|
-
</div>
|
|
718
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
719
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
|
|
720
|
-
<span className="text-2xl">🎥</span>
|
|
721
|
-
</div>
|
|
722
|
-
<div>
|
|
723
|
-
<div className="font-medium text-white">VideoIcon</div>
|
|
724
|
-
<div className="text-xs text-white/60">Video content</div>
|
|
725
|
-
</div>
|
|
726
|
-
</div>
|
|
727
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
728
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
|
|
729
|
-
<span className="text-2xl">🔗</span>
|
|
730
|
-
</div>
|
|
731
|
-
<div>
|
|
732
|
-
<div className="font-medium text-white">ShareIcon</div>
|
|
733
|
-
<div className="text-xs text-white/60">Share content</div>
|
|
734
|
-
</div>
|
|
735
|
-
</div>
|
|
736
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
737
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-orange-500/20">
|
|
738
|
-
<span className="text-2xl">📺</span>
|
|
739
|
-
</div>
|
|
740
|
-
<div>
|
|
741
|
-
<div className="font-medium text-white">ChannelIcon</div>
|
|
742
|
-
<div className="text-xs text-white/60">
|
|
743
|
-
Channel content
|
|
744
|
-
</div>
|
|
745
|
-
</div>
|
|
746
|
-
</div>
|
|
747
|
-
</div>
|
|
748
|
-
</div>
|
|
749
|
-
</div>
|
|
750
|
-
|
|
751
|
-
{/* Footer */}
|
|
752
|
-
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
753
|
-
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
754
|
-
<div className="!space-y-4 text-center">
|
|
755
|
-
<p className="!text-white/60">
|
|
756
|
-
YoutubeIcon is part of the Aural UI icon library, built with
|
|
757
|
-
accessibility and brand consistency in mind.
|
|
758
|
-
</p>
|
|
759
|
-
<p className="text-sm !text-white/40">
|
|
760
|
-
All icons use Radix UI's AccessibleIcon for screen reader
|
|
761
|
-
compatibility and follow WCAG guidelines.
|
|
762
|
-
</p>
|
|
763
|
-
</div>
|
|
764
|
-
</div>
|
|
765
|
-
</div>
|
|
766
|
-
</div>
|
|
767
|
-
</>
|
|
51
|
+
}`,
|
|
52
|
+
livePreview: (
|
|
53
|
+
<a href="#" target="_blank" rel="noreferrer">
|
|
54
|
+
<YoutubeIcon className="text-fm-icon-negative h-6 w-6" />
|
|
55
|
+
</a>
|
|
56
|
+
),
|
|
57
|
+
}}
|
|
58
|
+
relatedIcons={[
|
|
59
|
+
{
|
|
60
|
+
name: "InstagramIcon",
|
|
61
|
+
description: "Instagram brand mark",
|
|
62
|
+
icon: InstagramIcon,
|
|
63
|
+
accentToken: "info",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "TwitterXIcon",
|
|
67
|
+
description: "X (Twitter) brand mark",
|
|
68
|
+
icon: TwitterXIcon,
|
|
69
|
+
accentToken: "positive",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "LinkedInIcon",
|
|
73
|
+
description: "LinkedIn brand mark",
|
|
74
|
+
icon: LinkedInIcon,
|
|
75
|
+
accentToken: "warning",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "ThreadsIcon",
|
|
79
|
+
description: "Threads brand mark",
|
|
80
|
+
icon: ThreadsIcon,
|
|
81
|
+
accentToken: "negative",
|
|
82
|
+
},
|
|
83
|
+
]}
|
|
84
|
+
/>
|
|
768
85
|
),
|
|
769
86
|
},
|
|
770
87
|
},
|
|
771
88
|
tags: ["autodocs"],
|
|
772
89
|
argTypes: {
|
|
773
|
-
|
|
774
|
-
control:
|
|
775
|
-
description: "
|
|
90
|
+
className: {
|
|
91
|
+
control: "text",
|
|
92
|
+
description: "CSS classes including color token",
|
|
776
93
|
},
|
|
777
94
|
withAccessibility: {
|
|
778
95
|
control: "boolean",
|
|
779
|
-
description: "
|
|
780
|
-
},
|
|
781
|
-
height: {
|
|
782
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
783
|
-
description: "Height of the icon in pixels",
|
|
784
|
-
},
|
|
785
|
-
fill: {
|
|
786
|
-
control: "color",
|
|
787
|
-
description: "Fill color of the icon",
|
|
788
|
-
},
|
|
789
|
-
className: {
|
|
790
|
-
control: "text",
|
|
791
|
-
description: "CSS classes for styling",
|
|
96
|
+
description: "Wrap with accessibility label",
|
|
792
97
|
},
|
|
793
98
|
},
|
|
794
99
|
}
|
|
@@ -796,209 +101,129 @@ function CustomYoutubeIcon({ label = "YouTube", ...props }) {
|
|
|
796
101
|
export default meta
|
|
797
102
|
type Story = StoryObj<typeof YoutubeIcon>
|
|
798
103
|
|
|
799
|
-
// Story parameters for consistent dark theme
|
|
800
|
-
const storyParameters = {
|
|
801
|
-
backgrounds: {
|
|
802
|
-
default: "dark",
|
|
803
|
-
values: [
|
|
804
|
-
{ name: "dark", value: "#0a0a0a" },
|
|
805
|
-
{ name: "darker", value: "#000000" },
|
|
806
|
-
],
|
|
807
|
-
},
|
|
808
|
-
}
|
|
809
|
-
|
|
810
104
|
export const Default: Story = {
|
|
811
105
|
args: {
|
|
812
|
-
|
|
813
|
-
height: 24,
|
|
814
|
-
className: "text-red-500",
|
|
106
|
+
className: "h-6 w-6 text-fm-icon-negative",
|
|
815
107
|
withAccessibility: true,
|
|
816
108
|
},
|
|
817
|
-
parameters: storyParameters,
|
|
818
109
|
render: (args) => (
|
|
819
|
-
<
|
|
110
|
+
<IconDefaultCanvas>
|
|
820
111
|
<YoutubeIcon {...args} />
|
|
821
|
-
</
|
|
112
|
+
</IconDefaultCanvas>
|
|
822
113
|
),
|
|
823
114
|
}
|
|
824
115
|
|
|
825
116
|
export const SizeVariations: Story = {
|
|
826
|
-
|
|
827
|
-
...storyParameters,
|
|
828
|
-
docs: {
|
|
829
|
-
description: {
|
|
830
|
-
story:
|
|
831
|
-
"YoutubeIcon in different sizes, from small UI elements to large video displays.",
|
|
832
|
-
},
|
|
833
|
-
},
|
|
834
|
-
},
|
|
835
|
-
render: () => (
|
|
836
|
-
<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">
|
|
837
|
-
<div className="text-center">
|
|
838
|
-
<YoutubeIcon className="!mx-auto mb-2 h-3 w-3 text-red-400" />
|
|
839
|
-
<span className="text-xs text-white/60">12px</span>
|
|
840
|
-
</div>
|
|
841
|
-
<div className="text-center">
|
|
842
|
-
<YoutubeIcon className="!mx-auto mb-2 h-4 w-4 text-red-400" />
|
|
843
|
-
<span className="text-xs text-white/60">16px</span>
|
|
844
|
-
</div>
|
|
845
|
-
<div className="text-center">
|
|
846
|
-
<YoutubeIcon className="!mx-auto mb-2 h-5 w-5 text-red-400" />
|
|
847
|
-
<span className="text-xs text-white/60">20px</span>
|
|
848
|
-
</div>
|
|
849
|
-
<div className="text-center">
|
|
850
|
-
<YoutubeIcon className="!mx-auto mb-2 h-6 w-6 text-red-400" />
|
|
851
|
-
<span className="text-xs text-white/60">24px</span>
|
|
852
|
-
</div>
|
|
853
|
-
<div className="text-center">
|
|
854
|
-
<YoutubeIcon className="!mx-auto mb-2 h-8 w-8 text-red-400" />
|
|
855
|
-
<span className="text-xs text-white/60">32px</span>
|
|
856
|
-
</div>
|
|
857
|
-
<div className="text-center">
|
|
858
|
-
<YoutubeIcon className="!mx-auto mb-2 h-12 w-12 text-red-400" />
|
|
859
|
-
<span className="text-xs text-white/60">48px</span>
|
|
860
|
-
</div>
|
|
861
|
-
</div>
|
|
862
|
-
),
|
|
117
|
+
render: () => <IconSizeVariations icon={YoutubeIcon} />,
|
|
863
118
|
}
|
|
864
119
|
|
|
865
|
-
export const
|
|
866
|
-
parameters: {
|
|
867
|
-
...storyParameters,
|
|
868
|
-
docs: {
|
|
869
|
-
description: {
|
|
870
|
-
story:
|
|
871
|
-
"YoutubeIcon in different brand and semantic colors for various contexts.",
|
|
872
|
-
},
|
|
873
|
-
},
|
|
874
|
-
},
|
|
120
|
+
export const BrandColors: Story = {
|
|
875
121
|
render: () => (
|
|
876
|
-
<
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
122
|
+
<IconBrandColors
|
|
123
|
+
icon={YoutubeIcon}
|
|
124
|
+
variants={[
|
|
125
|
+
{
|
|
126
|
+
label: "Brand Red",
|
|
127
|
+
description: "Recommended",
|
|
128
|
+
cardClassName: "h-24 w-24",
|
|
129
|
+
cardStyle: { backgroundColor: "#FF0000" },
|
|
130
|
+
iconClassName: "h-8 w-8 text-white",
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
label: "White Background",
|
|
134
|
+
description: "Official contrast",
|
|
135
|
+
cardClassName:
|
|
136
|
+
"border-fm-divider-secondary h-24 w-24 border bg-white",
|
|
137
|
+
iconClassName: "h-8 w-8 text-[#FF0000]",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
label: "Primary Surface",
|
|
141
|
+
description: "Theme surface",
|
|
142
|
+
cardClassName: "bg-fm-surface-primary h-24 w-24",
|
|
143
|
+
iconClassName: "h-8 w-8 text-[#FF0000]",
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
label: "Transparent",
|
|
147
|
+
description: "Original mark",
|
|
148
|
+
cardClassName:
|
|
149
|
+
"border-fm-divider-contrast h-24 w-24 border bg-transparent",
|
|
150
|
+
iconClassName: "h-8 w-8 text-[#FF0000]",
|
|
151
|
+
},
|
|
152
|
+
]}
|
|
153
|
+
/>
|
|
906
154
|
),
|
|
907
155
|
}
|
|
908
156
|
|
|
909
157
|
export const UsageExamples: Story = {
|
|
910
|
-
parameters: {
|
|
911
|
-
...storyParameters,
|
|
912
|
-
docs: {
|
|
913
|
-
description: {
|
|
914
|
-
story:
|
|
915
|
-
"Real-world usage examples showing YoutubeIcon in different video and social media contexts.",
|
|
916
|
-
},
|
|
917
|
-
},
|
|
918
|
-
},
|
|
919
158
|
render: () => (
|
|
920
|
-
<
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
159
|
+
<IconUsageCanvas>
|
|
160
|
+
<IconUsageSection title="YouTube Channel Link">
|
|
161
|
+
<a
|
|
162
|
+
href="#"
|
|
163
|
+
className="flex items-center gap-2 rounded-xl px-4 py-2 text-white"
|
|
164
|
+
style={{ backgroundColor: "#FF0000" }}
|
|
165
|
+
target="_blank"
|
|
166
|
+
rel="noreferrer"
|
|
167
|
+
>
|
|
168
|
+
<YoutubeIcon className="h-4 w-4 text-white" />
|
|
169
|
+
<span className="font-fm-text text-sm font-medium">
|
|
927
170
|
Watch on YouTube
|
|
928
|
-
</
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
171
|
+
</span>
|
|
172
|
+
</a>
|
|
173
|
+
</IconUsageSection>
|
|
174
|
+
|
|
175
|
+
<IconUsageSection title="Social Links Row">
|
|
176
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm items-center justify-center gap-4 rounded-xl border p-4">
|
|
177
|
+
{[YoutubeIcon, InstagramIcon, TwitterXIcon, LinkedInIcon].map(
|
|
178
|
+
(Icon, i) => (
|
|
179
|
+
<a
|
|
180
|
+
key={i}
|
|
181
|
+
href="#"
|
|
182
|
+
className="border-fm-divider-secondary flex h-10 w-10 items-center justify-center rounded-xl border"
|
|
183
|
+
target="_blank"
|
|
184
|
+
rel="noreferrer"
|
|
185
|
+
>
|
|
186
|
+
<Icon className="text-fm-icon-active h-5 w-5" />
|
|
187
|
+
</a>
|
|
188
|
+
)
|
|
189
|
+
)}
|
|
933
190
|
</div>
|
|
934
|
-
</
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
<div>
|
|
946
|
-
<div className="text-sm font-medium text-white">
|
|
947
|
-
Introduction to React
|
|
948
|
-
</div>
|
|
949
|
-
<div className="text-xs text-white/60">15:30 • 2.5M views</div>
|
|
191
|
+
</IconUsageSection>
|
|
192
|
+
|
|
193
|
+
<IconUsageSection title="Video Content Card">
|
|
194
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm rounded-xl border">
|
|
195
|
+
<div className="bg-fm-divider-secondary relative h-32 overflow-hidden rounded-t-xl">
|
|
196
|
+
<div className="absolute inset-0 flex items-center justify-center">
|
|
197
|
+
<div
|
|
198
|
+
className="flex h-10 w-10 items-center justify-center rounded-full"
|
|
199
|
+
style={{ backgroundColor: "#FF0000" }}
|
|
200
|
+
>
|
|
201
|
+
<YoutubeIcon className="h-5 w-5 text-white" />
|
|
950
202
|
</div>
|
|
951
203
|
</div>
|
|
952
|
-
<button className="rounded-lg p-2 text-gray-400 transition-colors hover:bg-red-500/20 hover:text-red-400">
|
|
953
|
-
<YoutubeIcon className="h-4 w-4" />
|
|
954
|
-
</button>
|
|
955
|
-
</div>
|
|
956
|
-
</div>
|
|
957
|
-
</div>
|
|
958
|
-
|
|
959
|
-
{/* Social Links */}
|
|
960
|
-
<div className="!space-y-2">
|
|
961
|
-
<h3 className="text-sm font-medium text-white">Social Media Links</h3>
|
|
962
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4">
|
|
963
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm hover:bg-white/10">
|
|
964
|
-
<YoutubeIcon className="h-4 w-4 text-red-400" />
|
|
965
|
-
<span className="text-white">YouTube Channel</span>
|
|
966
|
-
<span className="ml-auto text-xs text-white/60">External</span>
|
|
967
|
-
</div>
|
|
968
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm hover:bg-white/10">
|
|
969
|
-
<YoutubeIcon className="h-4 w-4 text-red-400" />
|
|
970
|
-
<span className="text-white">Latest Videos</span>
|
|
971
204
|
</div>
|
|
972
|
-
<div className="
|
|
973
|
-
<
|
|
974
|
-
|
|
205
|
+
<div className="p-3">
|
|
206
|
+
<div className="text-fm-primary font-fm-text text-sm font-medium">
|
|
207
|
+
Creator Interview
|
|
208
|
+
</div>
|
|
209
|
+
<div className="text-fm-secondary font-fm-text text-xs">
|
|
210
|
+
Pocket FM Channel
|
|
211
|
+
</div>
|
|
975
212
|
</div>
|
|
976
213
|
</div>
|
|
977
|
-
</
|
|
978
|
-
</
|
|
214
|
+
</IconUsageSection>
|
|
215
|
+
</IconUsageCanvas>
|
|
979
216
|
),
|
|
980
217
|
}
|
|
981
218
|
|
|
982
219
|
export const Playground: Story = {
|
|
983
|
-
parameters: {
|
|
984
|
-
...storyParameters,
|
|
985
|
-
docs: {
|
|
986
|
-
description: {
|
|
987
|
-
story:
|
|
988
|
-
"Interactive playground to experiment with different YoutubeIcon configurations.",
|
|
989
|
-
},
|
|
990
|
-
},
|
|
991
|
-
},
|
|
992
220
|
args: {
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
className: "text-red-500",
|
|
221
|
+
className: "h-8 w-8 text-fm-icon-negative",
|
|
222
|
+
withAccessibility: true,
|
|
996
223
|
},
|
|
997
224
|
render: (args) => (
|
|
998
|
-
<
|
|
999
|
-
<
|
|
1000
|
-
|
|
1001
|
-
</div>
|
|
1002
|
-
</div>
|
|
225
|
+
<IconPlaygroundCanvas>
|
|
226
|
+
<YoutubeIcon {...args} />
|
|
227
|
+
</IconPlaygroundCanvas>
|
|
1003
228
|
),
|
|
1004
229
|
}
|