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,21 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
|
+
import { ArrowRightIcon } from "src/ui/icons/arrow-right-icon"
|
|
5
|
+
import { BackwardTenSecondsIcon } from "src/ui/icons/backward-ten-seconds-icon"
|
|
6
|
+
import { ChevronLeftIcon } from "src/ui/icons/chevron-left-icon"
|
|
7
|
+
import { SkipBackwardIcon } from "src/ui/icons/skip-backward-icon"
|
|
8
|
+
import {
|
|
9
|
+
IconColorVariations,
|
|
10
|
+
IconDefaultCanvas,
|
|
11
|
+
IconDirectionalVariations,
|
|
12
|
+
IconPlaygroundCanvas,
|
|
13
|
+
IconSizeVariations,
|
|
14
|
+
IconUsageCanvas,
|
|
15
|
+
IconUsageSection,
|
|
16
|
+
} from "src/ui/story-spec/icons/icon-story-canvas"
|
|
17
|
+
import { AuralIconDocsPage } from "src/ui/story-spec/icons/icon-story-docs-page"
|
|
18
|
+
|
|
4
19
|
import { ArrowLeftIcon } from "."
|
|
5
20
|
|
|
6
21
|
const meta: Meta<typeof ArrowLeftIcon> = {
|
|
@@ -11,797 +26,80 @@ const meta: Meta<typeof ArrowLeftIcon> = {
|
|
|
11
26
|
backgrounds: {
|
|
12
27
|
default: "dark",
|
|
13
28
|
values: [
|
|
14
|
-
{ name: "dark", value: "
|
|
15
|
-
{ name: "darker", value: "
|
|
16
|
-
{ name: "light", value: "
|
|
29
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
30
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
31
|
+
{ name: "light", value: "var(--color-fm-neutral-1100)" },
|
|
17
32
|
],
|
|
18
33
|
},
|
|
19
34
|
docs: {
|
|
20
35
|
page: () => (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
margin: 0 !important;
|
|
34
|
-
background: transparent !important;
|
|
35
|
-
}
|
|
36
|
-
.docs-story {
|
|
37
|
-
background: transparent !important;
|
|
38
|
-
}
|
|
39
|
-
.sbdocs {
|
|
40
|
-
background: transparent !important;
|
|
41
|
-
}
|
|
42
|
-
body {
|
|
43
|
-
background: #0a0a0a !important;
|
|
44
|
-
}
|
|
45
|
-
#storybook-docs {
|
|
46
|
-
background: #0a0a0a !important;
|
|
47
|
-
}
|
|
48
|
-
.sbdocs-preview {
|
|
49
|
-
background: transparent !important;
|
|
50
|
-
border: none !important;
|
|
51
|
-
}
|
|
52
|
-
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
-
color: white !important;
|
|
54
|
-
}
|
|
55
|
-
.sbdocs-p, .sbdocs-li {
|
|
56
|
-
color: rgba(255, 255, 255, 0.7) !important;
|
|
57
|
-
}
|
|
58
|
-
.sbdocs-code {
|
|
59
|
-
background: rgba(255, 255, 255, 0.1) !important;
|
|
60
|
-
color: rgba(168, 85, 247, 1) !important;
|
|
61
|
-
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
62
|
-
}
|
|
63
|
-
.sbdocs-pre {
|
|
64
|
-
background: rgba(0, 0, 0, 0.4) !important;
|
|
65
|
-
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
66
|
-
}
|
|
67
|
-
.sbdocs-table {
|
|
68
|
-
background: rgba(255, 255, 255, 0.05) !important;
|
|
69
|
-
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
70
|
-
}
|
|
71
|
-
.sbdocs-table th {
|
|
72
|
-
background: rgba(255, 255, 255, 0.05) !important;
|
|
73
|
-
color: white !important;
|
|
74
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
75
|
-
}
|
|
76
|
-
.sbdocs-table td {
|
|
77
|
-
color: rgba(255, 255, 255, 0.7) !important;
|
|
78
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
|
|
79
|
-
}
|
|
80
|
-
`}
|
|
81
|
-
</style>
|
|
82
|
-
|
|
83
|
-
<div className="min-h-screen bg-gradient-to-br from-gray-900 via-blue-900/20 to-gray-900">
|
|
84
|
-
{/* Header */}
|
|
85
|
-
<div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
|
|
86
|
-
<div className="absolute inset-0 bg-gradient-to-r from-blue-500/10 via-purple-500/10 to-blue-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-purple-500/20">
|
|
90
|
-
<ArrowLeftIcon className="h-12 w-12 text-blue-400" />
|
|
91
|
-
</div>
|
|
92
|
-
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
|
-
ArrowLeftIcon
|
|
94
|
-
</h1>
|
|
95
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
96
|
-
A directional arrow icon pointing left for navigation, back
|
|
97
|
-
buttons, and directional indicators. 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-blue-300">
|
|
106
|
-
Accessible
|
|
107
|
-
</div>
|
|
108
|
-
<div className="text-sm text-white/60">
|
|
109
|
-
Screen reader friendly
|
|
110
|
-
</div>
|
|
111
|
-
</div>
|
|
112
|
-
<div className="h-8 w-px bg-white/20" />
|
|
113
|
-
<div className="text-center">
|
|
114
|
-
<div className="text-3xl font-bold text-purple-300">
|
|
115
|
-
Scalable
|
|
116
|
-
</div>
|
|
117
|
-
<div className="text-sm text-white/60">
|
|
118
|
-
Any size needed
|
|
119
|
-
</div>
|
|
120
|
-
</div>
|
|
121
|
-
<div className="h-8 w-px bg-white/20" />
|
|
122
|
-
<div className="text-center">
|
|
123
|
-
<div className="text-3xl font-bold text-cyan-300">
|
|
124
|
-
Flexible
|
|
125
|
-
</div>
|
|
126
|
-
<div className="text-sm text-white/60">
|
|
127
|
-
Customizable styling
|
|
128
|
-
</div>
|
|
129
|
-
</div>
|
|
130
|
-
</div>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
</div>
|
|
134
|
-
|
|
135
|
-
{/* Content */}
|
|
136
|
-
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
137
|
-
{/* Quick Usage */}
|
|
138
|
-
<div className="!space-y-8">
|
|
139
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
140
|
-
Quick Start
|
|
141
|
-
</h2>
|
|
142
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
143
|
-
<div className="!space-y-4">
|
|
144
|
-
<h3 className="text-xl font-semibold !text-blue-300">
|
|
145
|
-
Basic Usage
|
|
146
|
-
</h3>
|
|
147
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
148
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
149
|
-
{`import { ArrowLeftIcon } from "@icons/arrow-left-icon"
|
|
36
|
+
<AuralIconDocsPage
|
|
37
|
+
accentToken="info"
|
|
38
|
+
features={[
|
|
39
|
+
{
|
|
40
|
+
title: "Navigation Back",
|
|
41
|
+
description: "Clear back/return signal",
|
|
42
|
+
},
|
|
43
|
+
{ title: "currentColor", description: "Responds to text tokens" },
|
|
44
|
+
{ title: "Accessible", description: "ARIA-ready by default" },
|
|
45
|
+
]}
|
|
46
|
+
quickStart={{
|
|
47
|
+
codeExample: `import { ArrowLeftIcon } from "src/ui/icons/arrow-left-icon"
|
|
150
48
|
|
|
151
49
|
function BackButton() {
|
|
152
50
|
return (
|
|
153
51
|
<button className="flex items-center gap-2">
|
|
154
|
-
<ArrowLeftIcon className="h-4 w-4 text-
|
|
155
|
-
|
|
52
|
+
<ArrowLeftIcon className="h-4 w-4 text-fm-icon-active" />
|
|
53
|
+
Go back
|
|
156
54
|
</button>
|
|
157
55
|
)
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
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-blue-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">20</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-blue-300">
|
|
234
|
-
stroke
|
|
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
|
-
Stroke 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-blue-300">
|
|
248
|
-
strokeWidth
|
|
249
|
-
</td>
|
|
250
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
251
|
-
number | string
|
|
252
|
-
</td>
|
|
253
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
254
|
-
1.5
|
|
255
|
-
</td>
|
|
256
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
257
|
-
Width of the stroke
|
|
258
|
-
</td>
|
|
259
|
-
</tr>
|
|
260
|
-
<tr className="border-b border-white/5">
|
|
261
|
-
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
262
|
-
className
|
|
263
|
-
</td>
|
|
264
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
265
|
-
string
|
|
266
|
-
</td>
|
|
267
|
-
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
268
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
269
|
-
CSS classes for styling
|
|
270
|
-
</td>
|
|
271
|
-
</tr>
|
|
272
|
-
<tr className="!bg-black/10">
|
|
273
|
-
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
274
|
-
...svgProps
|
|
275
|
-
</td>
|
|
276
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
277
|
-
SVGProps
|
|
278
|
-
</td>
|
|
279
|
-
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
280
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
281
|
-
All standard SVG element props
|
|
282
|
-
</td>
|
|
283
|
-
</tr>
|
|
284
|
-
</tbody>
|
|
285
|
-
</table>
|
|
286
|
-
</div>
|
|
287
|
-
</div>
|
|
288
|
-
|
|
289
|
-
{/* Size Variations */}
|
|
290
|
-
<div className="!space-y-8">
|
|
291
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
292
|
-
Size Variations
|
|
293
|
-
</h2>
|
|
294
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
295
|
-
<div className="!space-y-6">
|
|
296
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
297
|
-
<div className="!space-y-4">
|
|
298
|
-
<h3 className="text-lg font-semibold !text-blue-300">
|
|
299
|
-
Standard Sizes
|
|
300
|
-
</h3>
|
|
301
|
-
<div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
|
|
302
|
-
<div className="text-center">
|
|
303
|
-
<ArrowLeftIcon className="!mx-auto mb-2 h-3 w-3 text-blue-400" />
|
|
304
|
-
<span className="text-xs text-white/60">12px</span>
|
|
305
|
-
</div>
|
|
306
|
-
<div className="text-center">
|
|
307
|
-
<ArrowLeftIcon className="!mx-auto mb-2 h-4 w-4 text-blue-400" />
|
|
308
|
-
<span className="text-xs text-white/60">16px</span>
|
|
309
|
-
</div>
|
|
310
|
-
<div className="text-center">
|
|
311
|
-
<ArrowLeftIcon className="!mx-auto mb-2 h-5 w-5 text-blue-400" />
|
|
312
|
-
<span className="text-xs text-white/60">20px</span>
|
|
313
|
-
</div>
|
|
314
|
-
<div className="text-center">
|
|
315
|
-
<ArrowLeftIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
|
|
316
|
-
<span className="text-xs text-white/60">24px</span>
|
|
317
|
-
</div>
|
|
318
|
-
<div className="text-center">
|
|
319
|
-
<ArrowLeftIcon className="!mx-auto mb-2 h-8 w-8 text-blue-400" />
|
|
320
|
-
<span className="text-xs text-white/60">32px</span>
|
|
321
|
-
</div>
|
|
322
|
-
<div className="text-center">
|
|
323
|
-
<ArrowLeftIcon className="!mx-auto mb-2 h-12 w-12 text-blue-400" />
|
|
324
|
-
<span className="text-xs text-white/60">48px</span>
|
|
325
|
-
</div>
|
|
326
|
-
</div>
|
|
327
|
-
</div>
|
|
328
|
-
|
|
329
|
-
<div className="!space-y-4">
|
|
330
|
-
<h3 className="text-lg font-semibold !text-blue-300">
|
|
331
|
-
Code Example
|
|
332
|
-
</h3>
|
|
333
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
334
|
-
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
335
|
-
{`// Small (16px)
|
|
336
|
-
<ArrowLeftIcon className="h-4 w-4" />
|
|
337
|
-
|
|
338
|
-
// Medium (24px)
|
|
339
|
-
<ArrowLeftIcon className="h-6 w-6" />
|
|
340
|
-
|
|
341
|
-
// Large (32px)
|
|
342
|
-
<ArrowLeftIcon className="h-8 w-8" />
|
|
343
|
-
|
|
344
|
-
// Custom size and stroke
|
|
345
|
-
<ArrowLeftIcon
|
|
346
|
-
width={40}
|
|
347
|
-
height={40}
|
|
348
|
-
strokeWidth={2}
|
|
349
|
-
/>`}
|
|
350
|
-
</pre>
|
|
351
|
-
</div>
|
|
352
|
-
</div>
|
|
353
|
-
</div>
|
|
354
|
-
</div>
|
|
355
|
-
</div>
|
|
356
|
-
</div>
|
|
357
|
-
|
|
358
|
-
{/* Color Variations */}
|
|
359
|
-
<div className="!space-y-8">
|
|
360
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
361
|
-
Color Variations
|
|
362
|
-
</h2>
|
|
363
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
364
|
-
<div className="!space-y-4">
|
|
365
|
-
<h3 className="text-lg font-semibold !text-blue-300">
|
|
366
|
-
Semantic Colors
|
|
367
|
-
</h3>
|
|
368
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
369
|
-
<div className="flex items-center gap-4">
|
|
370
|
-
<ArrowLeftIcon className="h-6 w-6 text-blue-400" />
|
|
371
|
-
<div>
|
|
372
|
-
<div className="text-sm font-medium text-white">
|
|
373
|
-
Primary
|
|
374
|
-
</div>
|
|
375
|
-
<div className="text-xs text-white/60">
|
|
376
|
-
text-blue-400
|
|
377
|
-
</div>
|
|
378
|
-
</div>
|
|
379
|
-
</div>
|
|
380
|
-
<div className="flex items-center gap-4">
|
|
381
|
-
<ArrowLeftIcon className="h-6 w-6 text-gray-400" />
|
|
382
|
-
<div>
|
|
383
|
-
<div className="text-sm font-medium text-white">
|
|
384
|
-
Secondary
|
|
385
|
-
</div>
|
|
386
|
-
<div className="text-xs text-white/60">
|
|
387
|
-
text-gray-400
|
|
388
|
-
</div>
|
|
389
|
-
</div>
|
|
390
|
-
</div>
|
|
391
|
-
<div className="flex items-center gap-4">
|
|
392
|
-
<ArrowLeftIcon className="h-6 w-6 text-white" />
|
|
393
|
-
<div>
|
|
394
|
-
<div className="text-sm font-medium text-white">
|
|
395
|
-
Contrast
|
|
396
|
-
</div>
|
|
397
|
-
<div className="text-xs text-white/60">
|
|
398
|
-
text-white
|
|
399
|
-
</div>
|
|
400
|
-
</div>
|
|
401
|
-
</div>
|
|
402
|
-
<div className="flex items-center gap-4">
|
|
403
|
-
<ArrowLeftIcon className="h-6 w-6 text-white/40" />
|
|
404
|
-
<div>
|
|
405
|
-
<div className="text-sm font-medium text-white">
|
|
406
|
-
Disabled
|
|
407
|
-
</div>
|
|
408
|
-
<div className="text-xs text-white/60">
|
|
409
|
-
text-white/40
|
|
410
|
-
</div>
|
|
411
|
-
</div>
|
|
412
|
-
</div>
|
|
413
|
-
</div>
|
|
414
|
-
</div>
|
|
415
|
-
|
|
416
|
-
<div className="!space-y-4">
|
|
417
|
-
<h3 className="text-lg font-semibold !text-blue-300">
|
|
418
|
-
Custom Colors
|
|
419
|
-
</h3>
|
|
420
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
421
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
422
|
-
{`// Using Tailwind classes
|
|
423
|
-
<ArrowLeftIcon className="h-6 w-6 text-blue-400" />
|
|
424
|
-
<ArrowLeftIcon className="h-6 w-6 text-gray-500" />
|
|
425
|
-
|
|
426
|
-
// Using CSS custom properties
|
|
427
|
-
<ArrowLeftIcon
|
|
428
|
-
className="h-6 w-6"
|
|
429
|
-
style={{ color: 'var(--color-primary)' }}
|
|
430
|
-
/>
|
|
431
|
-
|
|
432
|
-
// Direct stroke prop
|
|
433
|
-
<ArrowLeftIcon
|
|
434
|
-
width={24}
|
|
435
|
-
height={24}
|
|
436
|
-
stroke="#3b82f6"
|
|
437
|
-
/>`}
|
|
438
|
-
</pre>
|
|
439
|
-
</div>
|
|
440
|
-
</div>
|
|
441
|
-
</div>
|
|
442
|
-
</div>
|
|
443
|
-
|
|
444
|
-
{/* Usage Examples */}
|
|
445
|
-
<div className="!space-y-8">
|
|
446
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
447
|
-
Usage Examples
|
|
448
|
-
</h2>
|
|
449
|
-
|
|
450
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
451
|
-
{/* Back Navigation */}
|
|
452
|
-
<div className="!space-y-4">
|
|
453
|
-
<h3 className="text-lg font-semibold !text-blue-300">
|
|
454
|
-
Back Navigation
|
|
455
|
-
</h3>
|
|
456
|
-
<div className="!space-y-4">
|
|
457
|
-
<div className="flex gap-4">
|
|
458
|
-
<button className="flex items-center gap-2 rounded-lg border border-blue-500/30 bg-blue-500/20 px-4 py-2 text-blue-200 transition-colors hover:bg-blue-500/30">
|
|
459
|
-
<ArrowLeftIcon className="h-4 w-4" />
|
|
460
|
-
Back
|
|
461
|
-
</button>
|
|
462
|
-
<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">
|
|
463
|
-
<ArrowLeftIcon className="h-4 w-4" />
|
|
464
|
-
Previous
|
|
465
|
-
</button>
|
|
466
|
-
</div>
|
|
467
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
468
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
469
|
-
{`// Primary back button
|
|
470
|
-
<button className="flex items-center gap-2 bg-blue-500/20 border border-blue-500/30 px-4 py-2 rounded-lg">
|
|
471
|
-
<ArrowLeftIcon className="h-4 w-4" />
|
|
472
|
-
Back
|
|
473
|
-
</button>
|
|
474
|
-
|
|
475
|
-
// Secondary previous button
|
|
476
|
-
<button className="flex items-center gap-2 bg-white/5 border border-white/20 px-3 py-2 rounded-lg">
|
|
477
|
-
<ArrowLeftIcon className="h-4 w-4" />
|
|
478
|
-
Previous
|
|
479
|
-
</button>`}
|
|
480
|
-
</pre>
|
|
481
|
-
</div>
|
|
482
|
-
</div>
|
|
483
|
-
</div>
|
|
484
|
-
|
|
485
|
-
{/* Breadcrumb Navigation */}
|
|
486
|
-
<div className="!space-y-4">
|
|
487
|
-
<h3 className="text-lg font-semibold !text-blue-300">
|
|
488
|
-
Breadcrumb Navigation
|
|
489
|
-
</h3>
|
|
490
|
-
<div className="!space-y-4">
|
|
491
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
492
|
-
<div className="flex items-center gap-2 text-sm">
|
|
493
|
-
<button className="flex items-center gap-1 rounded px-2 py-1 text-blue-400 transition-colors hover:bg-blue-500/20">
|
|
494
|
-
<ArrowLeftIcon className="h-3 w-3" />
|
|
495
|
-
<span>Home</span>
|
|
496
|
-
</button>
|
|
497
|
-
<span className="text-white/40">/</span>
|
|
498
|
-
<span className="text-white/60">Products</span>
|
|
499
|
-
<span className="text-white/40">/</span>
|
|
500
|
-
<span className="text-white">Laptops</span>
|
|
501
|
-
</div>
|
|
502
|
-
</div>
|
|
503
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
504
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
505
|
-
{`<div className="flex items-center gap-2 text-sm">
|
|
506
|
-
<button className="flex items-center gap-1 rounded px-2 py-1 text-blue-400 hover:bg-blue-500/20">
|
|
507
|
-
<ArrowLeftIcon className="h-3 w-3" />
|
|
508
|
-
<span>Home</span>
|
|
509
|
-
</button>
|
|
510
|
-
<span className="text-white/40">/</span>
|
|
511
|
-
<span className="text-white/60">Products</span>
|
|
512
|
-
<span className="text-white/40">/</span>
|
|
513
|
-
<span className="text-white">Laptops</span>
|
|
514
|
-
</div>`}
|
|
515
|
-
</pre>
|
|
516
|
-
</div>
|
|
517
|
-
</div>
|
|
518
|
-
</div>
|
|
519
|
-
|
|
520
|
-
{/* Pagination */}
|
|
521
|
-
<div className="!space-y-4">
|
|
522
|
-
<h3 className="text-lg font-semibold !text-blue-300">
|
|
523
|
-
Pagination Controls
|
|
524
|
-
</h3>
|
|
525
|
-
<div className="!space-y-4">
|
|
526
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
527
|
-
<div className="flex items-center justify-between">
|
|
528
|
-
<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">
|
|
529
|
-
<ArrowLeftIcon className="h-4 w-4" />
|
|
530
|
-
Previous
|
|
531
|
-
</button>
|
|
532
|
-
<div className="flex items-center gap-2">
|
|
533
|
-
<span className="text-sm text-white/60">Page</span>
|
|
534
|
-
<span className="text-white">2</span>
|
|
535
|
-
<span className="text-sm text-white/60">of 10</span>
|
|
536
|
-
</div>
|
|
537
|
-
<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">
|
|
538
|
-
Next
|
|
539
|
-
<ArrowLeftIcon className="h-4 w-4 rotate-180" />
|
|
540
|
-
</button>
|
|
541
|
-
</div>
|
|
542
|
-
</div>
|
|
543
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
544
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
545
|
-
{`<div className="flex items-center justify-between">
|
|
546
|
-
<button className="flex items-center gap-2 bg-white/5 border border-white/20 px-3 py-2 rounded-lg">
|
|
547
|
-
<ArrowLeftIcon className="h-4 w-4" />
|
|
548
|
-
Previous
|
|
549
|
-
</button>
|
|
550
|
-
<div className="flex items-center gap-2">
|
|
551
|
-
<span className="text-sm text-white/60">Page</span>
|
|
552
|
-
<span className="text-white">2</span>
|
|
553
|
-
<span className="text-sm text-white/60">of 10</span>
|
|
554
|
-
</div>
|
|
555
|
-
<button className="flex items-center gap-2 bg-white/5 border border-white/20 px-3 py-2 rounded-lg">
|
|
556
|
-
Next
|
|
557
|
-
<ArrowLeftIcon className="h-4 w-4 rotate-180" />
|
|
558
|
-
</button>
|
|
559
|
-
</div>`}
|
|
560
|
-
</pre>
|
|
561
|
-
</div>
|
|
562
|
-
</div>
|
|
563
|
-
</div>
|
|
564
|
-
|
|
565
|
-
{/* Sidebar Toggle */}
|
|
566
|
-
<div className="!space-y-4">
|
|
567
|
-
<h3 className="text-lg font-semibold !text-blue-300">
|
|
568
|
-
Sidebar Toggle
|
|
569
|
-
</h3>
|
|
570
|
-
<div className="!space-y-4">
|
|
571
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
572
|
-
<div className="flex items-center gap-4">
|
|
573
|
-
<button className="rounded-lg border border-white/20 bg-white/5 p-2 text-white transition-colors hover:bg-white/10">
|
|
574
|
-
<ArrowLeftIcon className="h-5 w-5" />
|
|
575
|
-
</button>
|
|
576
|
-
<div>
|
|
577
|
-
<div className="font-medium text-white">
|
|
578
|
-
Collapse Sidebar
|
|
579
|
-
</div>
|
|
580
|
-
<div className="text-sm text-white/60">
|
|
581
|
-
Hide navigation panel
|
|
582
|
-
</div>
|
|
583
|
-
</div>
|
|
584
|
-
</div>
|
|
585
|
-
</div>
|
|
586
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
587
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
588
|
-
{`// Sidebar collapse button
|
|
589
|
-
<button className="rounded-lg border border-white/20 bg-white/5 p-2 text-white hover:bg-white/10">
|
|
590
|
-
<ArrowLeftIcon className="h-5 w-5" />
|
|
591
|
-
</button>
|
|
592
|
-
|
|
593
|
-
// With rotation for expand state
|
|
594
|
-
<button className="rounded-lg border border-white/20 bg-white/5 p-2 text-white hover:bg-white/10">
|
|
595
|
-
<ArrowLeftIcon className="h-5 w-5 rotate-180" />
|
|
596
|
-
</button>`}
|
|
597
|
-
</pre>
|
|
598
|
-
</div>
|
|
599
|
-
</div>
|
|
600
|
-
</div>
|
|
601
|
-
</div>
|
|
602
|
-
</div>
|
|
603
|
-
|
|
604
|
-
{/* Accessibility */}
|
|
605
|
-
<div className="!space-y-8">
|
|
606
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
607
|
-
Accessibility Features
|
|
608
|
-
</h2>
|
|
609
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
610
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
611
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
612
|
-
✅ Built-in Features
|
|
613
|
-
</h3>
|
|
614
|
-
<ul className="!space-y-2 text-sm !text-white/70">
|
|
615
|
-
<li className="!text-white/70">
|
|
616
|
-
Uses Radix UI AccessibleIcon wrapper
|
|
617
|
-
</li>
|
|
618
|
-
<li className="!text-white/70">
|
|
619
|
-
Provides screen reader label "Arrow left icon"
|
|
620
|
-
</li>
|
|
621
|
-
<li className="!text-white/70">
|
|
622
|
-
Supports keyboard navigation when interactive
|
|
623
|
-
</li>
|
|
624
|
-
<li className="!text-white/70">
|
|
625
|
-
Maintains proper color contrast ratios
|
|
626
|
-
</li>
|
|
627
|
-
<li className="!text-white/70">
|
|
628
|
-
Scales with user's font size preferences
|
|
629
|
-
</li>
|
|
630
|
-
</ul>
|
|
631
|
-
</div>
|
|
632
|
-
|
|
633
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
634
|
-
<h3 className="text-lg font-semibold !text-blue-300">
|
|
635
|
-
💡 Best Practices
|
|
636
|
-
</h3>
|
|
637
|
-
<ul className="!space-y-2 text-sm text-white/70">
|
|
638
|
-
<li className="!text-white/70">
|
|
639
|
-
Always pair with descriptive text for navigation
|
|
640
|
-
</li>
|
|
641
|
-
<li className="!text-white/70">
|
|
642
|
-
Use consistent direction conventions
|
|
643
|
-
</li>
|
|
644
|
-
<li className="!text-white/70">
|
|
645
|
-
Ensure sufficient color contrast on backgrounds
|
|
646
|
-
</li>
|
|
647
|
-
<li className="!text-white/70">
|
|
648
|
-
Add focus states for interactive elements
|
|
649
|
-
</li>
|
|
650
|
-
<li className="!text-white/70">
|
|
651
|
-
Consider cultural reading directions
|
|
652
|
-
</li>
|
|
653
|
-
</ul>
|
|
654
|
-
</div>
|
|
655
|
-
</div>
|
|
656
|
-
|
|
657
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
658
|
-
<h3 className="mb-4 text-lg font-semibold !text-purple-300">
|
|
659
|
-
Custom Accessibility Label
|
|
660
|
-
</h3>
|
|
661
|
-
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
662
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
663
|
-
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
664
|
-
{`// Custom implementation with specific label
|
|
665
|
-
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
666
|
-
|
|
667
|
-
function CustomArrowLeftIcon({ label = "Go back", ...props }) {
|
|
668
|
-
return (
|
|
669
|
-
<AccessibleIcon label={label}>
|
|
670
|
-
<ArrowLeftIcon {...props} />
|
|
671
|
-
</AccessibleIcon>
|
|
672
|
-
)
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
// Usage with specific context
|
|
676
|
-
<CustomArrowLeftIcon
|
|
677
|
-
label="Return to previous page"
|
|
678
|
-
className="h-4 w-4 text-blue-400"
|
|
679
|
-
/>`}
|
|
680
|
-
</pre>
|
|
681
|
-
</div>
|
|
682
|
-
<div className="!space-y-4">
|
|
683
|
-
<p className="text-sm !text-white/70">
|
|
684
|
-
For specific contexts, you can wrap the ArrowLeftIcon
|
|
685
|
-
with a custom AccessibleIcon component that provides
|
|
686
|
-
more descriptive labels for navigation actions and
|
|
687
|
-
directional guidance.
|
|
688
|
-
</p>
|
|
689
|
-
<div className="rounded-lg border border-blue-500/20 bg-blue-500/10 p-4">
|
|
690
|
-
<div className="flex items-center gap-2 text-sm text-blue-200">
|
|
691
|
-
<ArrowLeftIcon className="h-4 w-4" />
|
|
692
|
-
<span>
|
|
693
|
-
This approach gives screen readers more context
|
|
694
|
-
</span>
|
|
695
|
-
</div>
|
|
696
|
-
</div>
|
|
697
|
-
</div>
|
|
698
|
-
</div>
|
|
699
|
-
</div>
|
|
700
|
-
</div>
|
|
701
|
-
|
|
702
|
-
{/* Related Icons */}
|
|
703
|
-
<div className="!space-y-8">
|
|
704
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
705
|
-
Related Icons
|
|
706
|
-
</h2>
|
|
707
|
-
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
708
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
709
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
|
|
710
|
-
<ArrowLeftIcon className="h-6 w-6 rotate-180 text-blue-400" />
|
|
711
|
-
</div>
|
|
712
|
-
<div>
|
|
713
|
-
<div className="font-medium text-white">
|
|
714
|
-
ArrowRightIcon
|
|
715
|
-
</div>
|
|
716
|
-
<div className="text-xs text-white/60">
|
|
717
|
-
Forward navigation
|
|
718
|
-
</div>
|
|
719
|
-
</div>
|
|
720
|
-
</div>
|
|
721
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
722
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
|
|
723
|
-
<ArrowLeftIcon className="h-6 w-6 -rotate-90 text-green-400" />
|
|
724
|
-
</div>
|
|
725
|
-
<div>
|
|
726
|
-
<div className="font-medium text-white">ArrowUpIcon</div>
|
|
727
|
-
<div className="text-xs text-white/60">
|
|
728
|
-
Upward direction
|
|
729
|
-
</div>
|
|
730
|
-
</div>
|
|
731
|
-
</div>
|
|
732
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
733
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
|
|
734
|
-
<ArrowLeftIcon className="h-6 w-6 rotate-90 text-purple-400" />
|
|
735
|
-
</div>
|
|
736
|
-
<div>
|
|
737
|
-
<div className="font-medium text-white">
|
|
738
|
-
ArrowDownIcon
|
|
739
|
-
</div>
|
|
740
|
-
<div className="text-xs text-white/60">
|
|
741
|
-
Downward direction
|
|
742
|
-
</div>
|
|
743
|
-
</div>
|
|
744
|
-
</div>
|
|
745
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
746
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-orange-500/20">
|
|
747
|
-
<span className="text-2xl">🔙</span>
|
|
748
|
-
</div>
|
|
749
|
-
<div>
|
|
750
|
-
<div className="font-medium text-white">BackIcon</div>
|
|
751
|
-
<div className="text-xs text-white/60">
|
|
752
|
-
Navigation back
|
|
753
|
-
</div>
|
|
754
|
-
</div>
|
|
755
|
-
</div>
|
|
756
|
-
</div>
|
|
757
|
-
</div>
|
|
758
|
-
</div>
|
|
759
|
-
|
|
760
|
-
{/* Footer */}
|
|
761
|
-
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
762
|
-
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
763
|
-
<div className="!space-y-4 text-center">
|
|
764
|
-
<p className="!text-white/60">
|
|
765
|
-
ArrowLeftIcon is part of the Aural UI icon library, built
|
|
766
|
-
with accessibility and navigation clarity in mind.
|
|
767
|
-
</p>
|
|
768
|
-
<p className="text-sm !text-white/40">
|
|
769
|
-
All icons use Radix UI's AccessibleIcon for screen reader
|
|
770
|
-
compatibility and follow WCAG guidelines.
|
|
771
|
-
</p>
|
|
772
|
-
</div>
|
|
773
|
-
</div>
|
|
774
|
-
</div>
|
|
775
|
-
</div>
|
|
776
|
-
</>
|
|
56
|
+
}`,
|
|
57
|
+
livePreview: (
|
|
58
|
+
<button className="text-fm-primary font-fm-text flex items-center gap-2 text-sm">
|
|
59
|
+
<ArrowLeftIcon className="text-fm-icon-active h-4 w-4" />
|
|
60
|
+
Go back
|
|
61
|
+
</button>
|
|
62
|
+
),
|
|
63
|
+
}}
|
|
64
|
+
relatedIcons={[
|
|
65
|
+
{
|
|
66
|
+
name: "ArrowRightIcon",
|
|
67
|
+
description: "Points right",
|
|
68
|
+
icon: ArrowRightIcon,
|
|
69
|
+
accentToken: "info",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "ChevronLeftIcon",
|
|
73
|
+
description: "Lighter left chevron",
|
|
74
|
+
icon: ChevronLeftIcon,
|
|
75
|
+
accentToken: "positive",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "BackwardTenSecondsIcon",
|
|
79
|
+
description: "Rewind 10 seconds",
|
|
80
|
+
icon: BackwardTenSecondsIcon,
|
|
81
|
+
accentToken: "warning",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: "SkipBackwardIcon",
|
|
85
|
+
description: "Skip to previous",
|
|
86
|
+
icon: SkipBackwardIcon,
|
|
87
|
+
accentToken: "negative",
|
|
88
|
+
},
|
|
89
|
+
]}
|
|
90
|
+
/>
|
|
777
91
|
),
|
|
778
92
|
},
|
|
779
93
|
},
|
|
780
94
|
tags: ["autodocs"],
|
|
781
95
|
argTypes: {
|
|
782
|
-
|
|
783
|
-
control:
|
|
784
|
-
description: "
|
|
96
|
+
className: {
|
|
97
|
+
control: "text",
|
|
98
|
+
description: "CSS classes including size and color token",
|
|
785
99
|
},
|
|
786
100
|
withAccessibility: {
|
|
787
101
|
control: "boolean",
|
|
788
|
-
description: "
|
|
789
|
-
},
|
|
790
|
-
height: {
|
|
791
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
792
|
-
description: "Height of the icon in pixels",
|
|
793
|
-
},
|
|
794
|
-
stroke: {
|
|
795
|
-
control: "color",
|
|
796
|
-
description: "Stroke color of the icon",
|
|
797
|
-
},
|
|
798
|
-
strokeWidth: {
|
|
799
|
-
control: { type: "range", min: 0.5, max: 4, step: 0.1 },
|
|
800
|
-
description: "Width of the stroke",
|
|
801
|
-
},
|
|
802
|
-
className: {
|
|
803
|
-
control: "text",
|
|
804
|
-
description: "CSS classes for styling",
|
|
102
|
+
description: "Wrap with accessibility label",
|
|
805
103
|
},
|
|
806
104
|
},
|
|
807
105
|
}
|
|
@@ -809,208 +107,104 @@ function CustomArrowLeftIcon({ label = "Go back", ...props }) {
|
|
|
809
107
|
export default meta
|
|
810
108
|
type Story = StoryObj<typeof ArrowLeftIcon>
|
|
811
109
|
|
|
812
|
-
// Story parameters for consistent dark theme
|
|
813
|
-
const storyParameters = {
|
|
814
|
-
backgrounds: {
|
|
815
|
-
default: "dark",
|
|
816
|
-
values: [
|
|
817
|
-
{ name: "dark", value: "#0a0a0a" },
|
|
818
|
-
{ name: "darker", value: "#000000" },
|
|
819
|
-
],
|
|
820
|
-
},
|
|
821
|
-
}
|
|
822
|
-
|
|
823
110
|
export const Default: Story = {
|
|
824
111
|
args: {
|
|
825
|
-
|
|
826
|
-
height: 20,
|
|
827
|
-
className: "text-blue-400",
|
|
112
|
+
className: "h-6 w-6 text-fm-icon-active",
|
|
828
113
|
withAccessibility: true,
|
|
829
114
|
},
|
|
830
|
-
parameters: storyParameters,
|
|
831
115
|
render: (args) => (
|
|
832
|
-
<
|
|
116
|
+
<IconDefaultCanvas>
|
|
833
117
|
<ArrowLeftIcon {...args} />
|
|
834
|
-
</
|
|
118
|
+
</IconDefaultCanvas>
|
|
835
119
|
),
|
|
836
120
|
}
|
|
837
121
|
|
|
838
122
|
export const SizeVariations: Story = {
|
|
839
|
-
|
|
840
|
-
...storyParameters,
|
|
841
|
-
docs: {
|
|
842
|
-
description: {
|
|
843
|
-
story:
|
|
844
|
-
"ArrowLeftIcon in different sizes, from small UI elements to large navigation displays.",
|
|
845
|
-
},
|
|
846
|
-
},
|
|
847
|
-
},
|
|
848
|
-
render: () => (
|
|
849
|
-
<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">
|
|
850
|
-
<div className="text-center">
|
|
851
|
-
<ArrowLeftIcon className="!mx-auto mb-2 h-3 w-3 text-blue-400" />
|
|
852
|
-
<span className="text-xs text-white/60">12px</span>
|
|
853
|
-
</div>
|
|
854
|
-
<div className="text-center">
|
|
855
|
-
<ArrowLeftIcon className="!mx-auto mb-2 h-4 w-4 text-blue-400" />
|
|
856
|
-
<span className="text-xs text-white/60">16px</span>
|
|
857
|
-
</div>
|
|
858
|
-
<div className="text-center">
|
|
859
|
-
<ArrowLeftIcon className="!mx-auto mb-2 h-5 w-5 text-blue-400" />
|
|
860
|
-
<span className="text-xs text-white/60">20px</span>
|
|
861
|
-
</div>
|
|
862
|
-
<div className="text-center">
|
|
863
|
-
<ArrowLeftIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
|
|
864
|
-
<span className="text-xs text-white/60">24px</span>
|
|
865
|
-
</div>
|
|
866
|
-
<div className="text-center">
|
|
867
|
-
<ArrowLeftIcon className="!mx-auto mb-2 h-8 w-8 text-blue-400" />
|
|
868
|
-
<span className="text-xs text-white/60">32px</span>
|
|
869
|
-
</div>
|
|
870
|
-
<div className="text-center">
|
|
871
|
-
<ArrowLeftIcon className="!mx-auto mb-2 h-12 w-12 text-blue-400" />
|
|
872
|
-
<span className="text-xs text-white/60">48px</span>
|
|
873
|
-
</div>
|
|
874
|
-
</div>
|
|
875
|
-
),
|
|
123
|
+
render: () => <IconSizeVariations icon={ArrowLeftIcon} />,
|
|
876
124
|
}
|
|
877
125
|
|
|
878
126
|
export const ColorVariations: Story = {
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
story:
|
|
884
|
-
"ArrowLeftIcon in different semantic colors for various navigation contexts.",
|
|
885
|
-
},
|
|
886
|
-
},
|
|
887
|
-
},
|
|
127
|
+
render: () => <IconColorVariations icon={ArrowLeftIcon} />,
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export const DirectionalVariations: Story = {
|
|
888
131
|
render: () => (
|
|
889
|
-
<
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
</div>
|
|
908
|
-
<div className="text-sm font-medium text-white">Contrast</div>
|
|
909
|
-
<div className="text-xs text-white/60">text-white</div>
|
|
910
|
-
</div>
|
|
911
|
-
<div className="text-center">
|
|
912
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-white/20 bg-white/5">
|
|
913
|
-
<ArrowLeftIcon className="h-8 w-8 text-white/40" />
|
|
914
|
-
</div>
|
|
915
|
-
<div className="text-sm font-medium text-white">Disabled</div>
|
|
916
|
-
<div className="text-xs text-white/40">text-white/40</div>
|
|
917
|
-
</div>
|
|
918
|
-
</div>
|
|
132
|
+
<IconDirectionalVariations
|
|
133
|
+
icon={ArrowLeftIcon}
|
|
134
|
+
directions={[
|
|
135
|
+
{ label: "Left", className: "h-8 w-8 text-fm-icon-active" },
|
|
136
|
+
{
|
|
137
|
+
label: "Up",
|
|
138
|
+
className: "h-8 w-8 text-fm-icon-active rotate-90",
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
label: "Right",
|
|
142
|
+
className: "h-8 w-8 text-fm-icon-active rotate-180",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
label: "Down",
|
|
146
|
+
className: "h-8 w-8 text-fm-icon-active -rotate-90",
|
|
147
|
+
},
|
|
148
|
+
]}
|
|
149
|
+
/>
|
|
919
150
|
),
|
|
920
151
|
}
|
|
921
152
|
|
|
922
153
|
export const UsageExamples: Story = {
|
|
923
|
-
parameters: {
|
|
924
|
-
...storyParameters,
|
|
925
|
-
docs: {
|
|
926
|
-
description: {
|
|
927
|
-
story:
|
|
928
|
-
"Real-world usage examples showing ArrowLeftIcon in different navigation contexts.",
|
|
929
|
-
},
|
|
930
|
-
},
|
|
931
|
-
},
|
|
932
154
|
render: () => (
|
|
933
|
-
<
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
</button>
|
|
942
|
-
<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">
|
|
943
|
-
<ArrowLeftIcon className="h-4 w-4" />
|
|
944
|
-
Previous
|
|
155
|
+
<IconUsageCanvas>
|
|
156
|
+
<IconUsageSection title="Back Navigation">
|
|
157
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm rounded-xl border p-4">
|
|
158
|
+
<button className="flex items-center gap-2">
|
|
159
|
+
<ArrowLeftIcon className="text-fm-icon-active h-5 w-5" />
|
|
160
|
+
<span className="text-fm-primary font-fm-text text-sm font-medium">
|
|
161
|
+
Back to Library
|
|
162
|
+
</span>
|
|
945
163
|
</button>
|
|
946
164
|
</div>
|
|
947
|
-
</
|
|
165
|
+
</IconUsageSection>
|
|
948
166
|
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
<h3 className="text-sm font-medium text-white">
|
|
952
|
-
Breadcrumb Navigation
|
|
953
|
-
</h3>
|
|
954
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
955
|
-
<div className="flex items-center gap-2 text-sm">
|
|
956
|
-
<button className="flex items-center gap-1 rounded px-2 py-1 text-blue-400 transition-colors hover:bg-blue-500/20">
|
|
957
|
-
<ArrowLeftIcon className="h-3 w-3" />
|
|
958
|
-
<span>Home</span>
|
|
959
|
-
</button>
|
|
960
|
-
<span className="text-white/40">/</span>
|
|
961
|
-
<span className="text-white/60">Products</span>
|
|
962
|
-
<span className="text-white/40">/</span>
|
|
963
|
-
<span className="text-white">Laptops</span>
|
|
964
|
-
</div>
|
|
965
|
-
</div>
|
|
966
|
-
</div>
|
|
967
|
-
|
|
968
|
-
{/* Pagination */}
|
|
969
|
-
<div className="!space-y-2">
|
|
970
|
-
<h3 className="text-sm font-medium text-white">Pagination Controls</h3>
|
|
971
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
167
|
+
<IconUsageSection title="Wizard Step Navigation">
|
|
168
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm rounded-xl border p-4">
|
|
972
169
|
<div className="flex items-center justify-between">
|
|
973
|
-
<button className="flex items-center gap-
|
|
974
|
-
<ArrowLeftIcon className="h-4 w-4" />
|
|
975
|
-
|
|
170
|
+
<button className="border-fm-divider-secondary flex items-center gap-1.5 rounded-lg border px-3 py-2">
|
|
171
|
+
<ArrowLeftIcon className="text-fm-icon-active h-4 w-4" />
|
|
172
|
+
<span className="text-fm-primary font-fm-text text-sm">
|
|
173
|
+
Previous
|
|
174
|
+
</span>
|
|
976
175
|
</button>
|
|
977
|
-
<
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
Next
|
|
984
|
-
<ArrowLeftIcon className="h-4 w-4 rotate-180" />
|
|
176
|
+
<span className="text-fm-secondary font-fm-text text-sm">
|
|
177
|
+
Step 2 of 4
|
|
178
|
+
</span>
|
|
179
|
+
<button className="bg-fm-icon-active flex items-center gap-1.5 rounded-lg px-3 py-2">
|
|
180
|
+
<span className="text-fm-primary font-fm-text text-sm">Next</span>
|
|
181
|
+
<ArrowRightIcon className="text-fm-primary h-4 w-4" />
|
|
985
182
|
</button>
|
|
986
183
|
</div>
|
|
987
184
|
</div>
|
|
988
|
-
</
|
|
989
|
-
|
|
185
|
+
</IconUsageSection>
|
|
186
|
+
|
|
187
|
+
<IconUsageSection title="Swipe Hint">
|
|
188
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm items-center justify-center gap-2 rounded-xl border p-4">
|
|
189
|
+
<ArrowLeftIcon className="text-fm-icon-inactive h-4 w-4" />
|
|
190
|
+
<span className="text-fm-tertiary font-fm-text text-xs">
|
|
191
|
+
Swipe to navigate
|
|
192
|
+
</span>
|
|
193
|
+
<ArrowRightIcon className="text-fm-icon-inactive h-4 w-4" />
|
|
194
|
+
</div>
|
|
195
|
+
</IconUsageSection>
|
|
196
|
+
</IconUsageCanvas>
|
|
990
197
|
),
|
|
991
198
|
}
|
|
992
199
|
|
|
993
200
|
export const Playground: Story = {
|
|
994
|
-
parameters: {
|
|
995
|
-
...storyParameters,
|
|
996
|
-
docs: {
|
|
997
|
-
description: {
|
|
998
|
-
story:
|
|
999
|
-
"Interactive playground to experiment with different ArrowLeftIcon configurations.",
|
|
1000
|
-
},
|
|
1001
|
-
},
|
|
1002
|
-
},
|
|
1003
201
|
args: {
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
strokeWidth: 1.5,
|
|
1007
|
-
className: "text-blue-400",
|
|
202
|
+
className: "h-8 w-8 text-fm-icon-active",
|
|
203
|
+
withAccessibility: true,
|
|
1008
204
|
},
|
|
1009
205
|
render: (args) => (
|
|
1010
|
-
<
|
|
1011
|
-
<
|
|
1012
|
-
|
|
1013
|
-
</div>
|
|
1014
|
-
</div>
|
|
206
|
+
<IconPlaygroundCanvas>
|
|
207
|
+
<ArrowLeftIcon {...args} />
|
|
208
|
+
</IconPlaygroundCanvas>
|
|
1015
209
|
),
|
|
1016
210
|
}
|