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.
Files changed (183) hide show
  1. package/dist/components/aspect-ratio/AspectRatio.stories.tsx +290 -1199
  2. package/dist/components/avatar/Avatar.stories.tsx +235 -237
  3. package/dist/components/badge/Badge.stories.tsx +379 -116
  4. package/dist/components/banner/Banner.stories.tsx +445 -391
  5. package/dist/components/breadcrumb/Breadcrumb.stories.tsx +453 -199
  6. package/dist/components/button/Button.stories.tsx +585 -230
  7. package/dist/components/button/index.tsx +7 -7
  8. package/dist/components/card/Card.stories.tsx +619 -301
  9. package/dist/components/char-count/CharCount.stories.tsx +350 -248
  10. package/dist/components/checkbox/Checkbox.stories.tsx +309 -167
  11. package/dist/components/chip/Chip.stories.tsx +362 -168
  12. package/dist/components/circular-loader/CircularLoader.stories.tsx +221 -620
  13. package/dist/components/clamp-lines/ClampLines.stories.tsx +246 -117
  14. package/dist/components/collapsible/Collapsible.stories.tsx +391 -252
  15. package/dist/components/command/Command.stories.tsx +533 -856
  16. package/dist/components/dialog/Dialog.stories.tsx +505 -949
  17. package/dist/components/divider/Divider.stories.tsx +265 -502
  18. package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
  19. package/dist/components/drawer/Drawer.stories.tsx +659 -993
  20. package/dist/components/drawer/index.tsx +3 -3
  21. package/dist/components/dropdown/Dropdown.stories.tsx +643 -1018
  22. package/dist/components/form/Form.stories.tsx +560 -274
  23. package/dist/components/helper-text/HelperText.stories.tsx +199 -200
  24. package/dist/components/hover-card/HoverCard.stories.tsx +318 -1221
  25. package/dist/components/icon-button/IconButton.stories.tsx +837 -194
  26. package/dist/components/if-else/if-else.stories.tsx +370 -83
  27. package/dist/components/input/Input.stories.tsx +436 -368
  28. package/dist/components/label/Label.stories.tsx +156 -154
  29. package/dist/components/list/List.stories.tsx +485 -822
  30. package/dist/components/marquee/Marquee.stories.tsx +356 -694
  31. package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -410
  32. package/dist/components/overlay/Overlay.stories.tsx +452 -818
  33. package/dist/components/overlay/index.tsx +4 -4
  34. package/dist/components/pagination/Pagination.stories.tsx +721 -210
  35. package/dist/components/popover/Popover.stories.tsx +484 -873
  36. package/dist/components/radio/Radio.stories.tsx +432 -124
  37. package/dist/components/resizable/Resizable.stories.tsx +496 -752
  38. package/dist/components/scroll-area/ScrollArea.stories.tsx +384 -1006
  39. package/dist/components/search/Search.stories.tsx +314 -575
  40. package/dist/components/select/Select.stories.tsx +684 -787
  41. package/dist/components/sheet/Sheet.stories.tsx +671 -936
  42. package/dist/components/skelton/Skelton.stories.tsx +230 -764
  43. package/dist/components/slider/Slider.stories.tsx +384 -737
  44. package/dist/components/stepper/Stepper.stories.tsx +371 -514
  45. package/dist/components/switch/Switch.stories.tsx +461 -208
  46. package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
  47. package/dist/components/table/Table.stories.tsx +770 -914
  48. package/dist/components/tabs/Tabs.stories.tsx +459 -1400
  49. package/dist/components/tag/Tag.stories.tsx +714 -542
  50. package/dist/components/textarea/TextArea.stories.tsx +621 -562
  51. package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -148
  52. package/dist/components/toast/Toast.stories.tsx +452 -1333
  53. package/dist/components/toggle/Toggle.stories.tsx +488 -909
  54. package/dist/components/tooltip/Tooltip.stories.tsx +344 -1372
  55. package/dist/components/typography/Typography.stories.tsx +406 -89
  56. package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
  57. package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
  58. package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
  59. package/dist/icons/Icons.stories.tsx +0 -12
  60. package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +226 -1013
  61. package/dist/icons/alert-icon/AlertIcon.stories.tsx +109 -929
  62. package/dist/icons/all-icons.tsx +124 -87
  63. package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +140 -971
  64. package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +148 -888
  65. package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +135 -1019
  66. package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +137 -953
  67. package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +138 -997
  68. package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +136 -942
  69. package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +148 -1092
  70. package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +146 -1211
  71. package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +126 -615
  72. package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +144 -1164
  73. package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +167 -985
  74. package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +122 -1179
  75. package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +124 -1168
  76. package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +119 -850
  77. package/dist/icons/camera-icon/CameraIcon.stories.tsx +112 -1213
  78. package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +117 -934
  79. package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +160 -961
  80. package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +163 -961
  81. package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +144 -942
  82. package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +129 -966
  83. package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +147 -964
  84. package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +145 -975
  85. package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +150 -1142
  86. package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +114 -461
  87. package/dist/icons/coin-icon/CoinIcon.stories.tsx +124 -1322
  88. package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +117 -1318
  89. package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +114 -903
  90. package/dist/icons/command-icon/CommandIcon.stories.tsx +127 -1042
  91. package/dist/icons/copy-icon/CopyIcon.stories.tsx +123 -962
  92. package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +147 -999
  93. package/dist/icons/cross-icon/CrossIcon.stories.tsx +139 -960
  94. package/dist/icons/download-icon/DownloadIcon.stories.tsx +126 -820
  95. package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +124 -1031
  96. package/dist/icons/email-icon/EmailIcon.stories.tsx +115 -936
  97. package/dist/icons/expand-icon/ExpandIcon.stories.tsx +112 -1111
  98. package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +144 -1025
  99. package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +143 -1036
  100. package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +127 -1011
  101. package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +126 -1056
  102. package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +125 -614
  103. package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +119 -1050
  104. package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +169 -989
  105. package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +115 -1145
  106. package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +115 -1122
  107. package/dist/icons/globe-icon/GlobeIcon.stories.tsx +130 -313
  108. package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +145 -940
  109. package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +119 -1174
  110. package/dist/icons/head-icon/HeadIcon.stories.tsx +111 -916
  111. package/dist/icons/heart-icon/HeartIcon.stories.tsx +120 -1019
  112. package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +119 -683
  113. package/dist/icons/image-icon/ImageIcon.stories.tsx +105 -1121
  114. package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +111 -1192
  115. package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +136 -1256
  116. package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +159 -962
  117. package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +161 -1385
  118. package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +124 -972
  119. package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +119 -948
  120. package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +119 -942
  121. package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +108 -1215
  122. package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +154 -1517
  123. package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +110 -1188
  124. package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +119 -678
  125. package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +123 -1184
  126. package/dist/icons/message-icon/MessageIcon.stories.tsx +114 -538
  127. package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +116 -1158
  128. package/dist/icons/moon-icon/MoonIcon.stories.tsx +120 -536
  129. package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +109 -1184
  130. package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +115 -1134
  131. package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +119 -971
  132. package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +111 -1100
  133. package/dist/icons/notes-icon/NotesIcon.stories.tsx +119 -1101
  134. package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +109 -1111
  135. package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +122 -684
  136. package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +113 -954
  137. package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +112 -877
  138. package/dist/icons/pause-icon/PauseIcon.stories.tsx +113 -1000
  139. package/dist/icons/pencil-icon/PencilIcon.stories.tsx +115 -1070
  140. package/dist/icons/phone-icon/PhoneIcon.stories.tsx +115 -978
  141. package/dist/icons/plus-icon/PlusIcon.stories.tsx +106 -1093
  142. package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +107 -829
  143. package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +102 -469
  144. package/dist/icons/search-icon/SearchIcon.stories.tsx +111 -1124
  145. package/dist/icons/setting-icon/SettingIcon.stories.tsx +107 -970
  146. package/dist/icons/share-icon/ShareIcon.stories.tsx +120 -1025
  147. package/dist/icons/shield-icon/ShieldIcon.stories.tsx +117 -931
  148. package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +137 -1104
  149. package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +172 -982
  150. package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +164 -983
  151. package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +105 -958
  152. package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +158 -580
  153. package/dist/icons/spinner-gradient-icon/index.tsx +6 -1
  154. package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +158 -587
  155. package/dist/icons/spinner-solid-icon/index.tsx +6 -1
  156. package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +146 -682
  157. package/dist/icons/spinner-solid-neutral-icon/index.tsx +1 -1
  158. package/dist/icons/star-icon/StarIcon.stories.tsx +124 -904
  159. package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +112 -964
  160. package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +116 -852
  161. package/dist/icons/sun-icon/SunIcon.stories.tsx +120 -831
  162. package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +116 -950
  163. package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +123 -980
  164. package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +156 -1427
  165. package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +146 -1142
  166. package/dist/icons/tick-icon/TickIcon.stories.tsx +145 -1276
  167. package/dist/icons/trash-icon/TrashIcon.stories.tsx +108 -933
  168. package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +157 -1402
  169. package/dist/icons/upload-icon/UploadIcon.stories.tsx +115 -889
  170. package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +118 -984
  171. package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +125 -1049
  172. package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +123 -1356
  173. package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +110 -1171
  174. package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +112 -1093
  175. package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +115 -1087
  176. package/dist/icons/warning-icon/WarningIcon.stories.tsx +122 -1046
  177. package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +161 -936
  178. package/dist/index.cjs +84 -84
  179. package/dist/index.js +84 -84
  180. package/dist/styles/aural-all-theme.css +1222 -0
  181. package/dist/styles/{aural-theme.css → aural-dark-theme.css} +15 -3
  182. package/dist/styles/aural-light-theme.css +1047 -0
  183. 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 { TwitterXIcon } from "src/ui/icons/twitter-x-icon"
7
+ import { YoutubeIcon } from "src/ui/icons/youtube-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 { ThreadsIcon } from "."
5
19
 
6
20
  const meta: Meta<typeof ThreadsIcon> = {
@@ -11,1250 +25,75 @@ const meta: Meta<typeof ThreadsIcon> = {
11
25
  backgrounds: {
12
26
  default: "dark",
13
27
  values: [
14
- { name: "dark", value: "#0a0a0a" },
15
- { name: "darker", value: "#000000" },
16
- { name: "light", value: "#ffffff" },
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
- {/* Override default docs styling */}
23
- <style>
24
- {`
25
- .sbdocs-wrapper {
26
- padding: 0 ;
27
- max-width: none ;
28
- background: transparent ;
29
- }
30
- .sbdocs-content {
31
- max-width: none ;
32
- padding: 0 ;
33
- margin: 0 ;
34
- background: transparent ;
35
- }
36
- .docs-story {
37
- background: transparent ;
38
- }
39
- .sbdocs {
40
- background: transparent ;
41
- }
42
- body {
43
- background: #0a0a0a ;
44
- }
45
- #storybook-docs {
46
- background: #0a0a0a ;
47
- }
48
- .sbdocs-preview {
49
- background: transparent ;
50
- border: none ;
51
- }
52
- .sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
53
- color: white ;
54
- }
55
- .sbdocs-p, .sbdocs-li {
56
- color: rgba(255, 255, 255, 0.7) ;
57
- }
58
- .sbdocs-code {
59
- background: rgba(255, 255, 255, 0.1) ;
60
- color: rgba(168, 85, 247, 1) ;
61
- border: 1px solid rgba(255, 255, 255, 0.1) ;
62
- }
63
- .sbdocs-pre {
64
- background: rgba(0, 0, 0, 0.4) ;
65
- border: 1px solid rgba(255, 255, 255, 0.1) ;
66
- }
67
- .sbdocs-table {
68
- background: rgba(255, 255, 255, 0.05) ;
69
- border: 1px solid rgba(255, 255, 255, 0.1) ;
70
- }
71
- .sbdocs-table th {
72
- background: rgba(255, 255, 255, 0.05) ;
73
- color: white ;
74
- border-bottom: 1px solid rgba(255, 255, 255, 0.1) ;
75
- }
76
- .sbdocs-table td {
77
- color: rgba(255, 255, 255, 0.7) ;
78
- border-bottom: 1px solid rgba(255, 255, 255, 0.05) ;
79
- }
80
- `}
81
- </style>
82
-
83
- <div className="min-h-screen bg-gradient-to-br from-gray-900 via-zinc-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-zinc-500/10 via-transparent to-gray-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-zinc-500/30 bg-gradient-to-br from-zinc-500/20 to-gray-500/20">
90
- <ThreadsIcon className="h-12 w-12 text-white" />
91
- </div>
92
- <h1 className="text-5xl font-bold !text-white">
93
- ThreadsIcon
94
- </h1>
95
- <p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
96
- The official Threads brand icon featuring the distinctive
97
- "@" symbol design. Essential for text-based social
98
- networking, conversation platforms, community engagement,
99
- discussion threads, and any interface where Threads platform
100
- connectivity and threaded conversations are featured.
101
- </p>
102
-
103
- {/* Stats */}
104
- <div className="flex items-center justify-center gap-8 pt-8">
105
- <div className="text-center">
106
- <div className="text-3xl font-bold text-zinc-300">
107
- Text Conversations
108
- </div>
109
- <div className="text-sm text-white/60">
110
- Threaded discussions
111
- </div>
112
- </div>
113
- <div className="h-8 w-px bg-white/20" />
114
- <div className="text-center">
115
- <div className="text-3xl font-bold text-gray-300">
116
- Community Platform
117
- </div>
118
- <div className="text-sm text-white/60">
119
- Social networking
120
- </div>
121
- </div>
122
- <div className="h-8 w-px bg-white/20" />
123
- <div className="text-center">
124
- <div className="text-3xl font-bold text-neutral-300">
125
- Meta Ecosystem
126
- </div>
127
- <div className="text-sm text-white/60">
128
- Integrated platform
129
- </div>
130
- </div>
131
- </div>
132
- </div>
133
- </div>
134
- </div>
135
-
136
- {/* Content */}
137
- <div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
138
- {/* Quick Usage */}
139
- <div className="!space-y-8">
140
- <h2 className="text-center text-3xl font-bold !text-white">
141
- Quick Start
142
- </h2>
143
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
144
- <div className="!space-y-4">
145
- <h3 className="text-xl font-semibold !text-zinc-300">
146
- Basic Usage
147
- </h3>
148
- <div className="rounded-lg bg-black/40 p-4">
149
- <pre className="overflow-x-auto text-sm !text-green-300">
150
- {`import { ThreadsIcon } from "@icons/threads-icon"
151
-
152
- function SocialShare() {
35
+ <AuralIconDocsPage
36
+ accentToken="negative"
37
+ features={[
38
+ { title: "Brand Mark", description: "Threads identity icon" },
39
+ { title: "Social Media", description: "Share and follow links" },
40
+ { title: "Accessible", description: "ARIA-ready by default" },
41
+ ]}
42
+ quickStart={{
43
+ codeExample: `import { ThreadsIcon } from "src/ui/icons/threads-icon"
44
+
45
+ function ThreadsLink() {
153
46
  return (
154
- <button
155
- onClick={shareToThreads}
156
- className="flex items-center gap-2 p-2 rounded-lg
157
- bg-black hover:bg-gray-800 border border-gray-700
158
- transition-colors"
159
- aria-label="Share on Threads"
160
- >
161
- <ThreadsIcon className="h-5 w-5 text-white" />
162
- <span className="text-white">Share on Threads</span>
163
- </button>
164
- )
165
- }`}
166
- </pre>
167
- </div>
168
- </div>
169
-
170
- <div className="!space-y-4">
171
- <h3 className="text-xl font-semibold !text-zinc-300">
172
- Live Preview
173
- </h3>
174
- <div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
175
- <button className="flex items-center gap-2 rounded-lg border border-gray-700 bg-black px-4 py-2 transition-colors hover:bg-gray-800">
176
- <ThreadsIcon className="h-5 w-5 text-white" />
177
- <span className="font-medium text-white">
178
- Share on Threads
179
- </span>
180
- </button>
181
- </div>
182
- </div>
183
- </div>
184
- </div>
185
-
186
- {/* Props Documentation */}
187
- <div className="!space-y-8">
188
- <h2 className="text-center text-3xl font-bold !text-white">
189
- Props & Configuration
190
- </h2>
191
-
192
- <div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
193
- <div className="bg-white/5 p-4">
194
- <h3 className="text-xl font-semibold !text-white">Props</h3>
195
- </div>
196
- <table className="!my-0 w-full">
197
- <thead className="bg-white/5">
198
- <tr className="border-b border-white/10">
199
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
200
- Prop
201
- </th>
202
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
203
- Type
204
- </th>
205
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
206
- Default
207
- </th>
208
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
209
- Description
210
- </th>
211
- </tr>
212
- </thead>
213
- <tbody>
214
- {" "}
215
- <tr className="!bg-black/10">
216
- <td className="px-6 py-4 font-mono text-sm !text-blue-300">
217
- withAccessibility
218
- </td>
219
- <td className="px-6 py-4 text-sm !text-white/70">
220
- boolean
221
- </td>
222
- <td className="px-6 py-4 text-sm !text-white/50">
223
- true
224
- </td>
225
- <td className="px-6 py-4 text-sm !text-white/70">
226
- Whether to wrap the icon with accessibility feature
227
- </td>
228
- </tr>
229
- <tr className="border-b border-white/5 !bg-black/10">
230
- <td className="px-6 py-4 font-mono text-sm !text-zinc-300">
231
- height
232
- </td>
233
- <td className="px-6 py-4 text-sm !text-white/70">
234
- number | string
235
- </td>
236
- <td className="px-6 py-4 text-sm !text-white/50">
237
- auto
238
- </td>
239
- <td className="px-6 py-4 text-sm !text-white/70">
240
- Height of the icon (maintains aspect ratio)
241
- </td>
242
- </tr>
243
- <tr className="border-b border-white/5">
244
- <td className="px-6 py-4 font-mono text-sm !text-zinc-300">
245
- fill
246
- </td>
247
- <td className="px-6 py-4 text-sm !text-white/70">
248
- string
249
- </td>
250
- <td className="px-6 py-4 text-sm !text-white/50">
251
- currentColor
252
- </td>
253
- <td className="px-6 py-4 text-sm !text-white/70">
254
- Fill color of the Threads "@" symbol
255
- </td>
256
- </tr>
257
- <tr className="border-b border-white/5 !bg-black/10">
258
- <td className="px-6 py-4 font-mono text-sm !text-zinc-300">
259
- className
260
- </td>
261
- <td className="px-6 py-4 text-sm !text-white/70">
262
- string
263
- </td>
264
- <td className="px-6 py-4 text-sm !text-white/50">-</td>
265
- <td className="px-6 py-4 text-sm !text-white/70">
266
- CSS classes for styling and sizing
267
- </td>
268
- </tr>
269
- <tr className="border-b border-white/5">
270
- <td className="px-6 py-4 font-mono text-sm !text-zinc-300">
271
- onClick
272
- </td>
273
- <td className="px-6 py-4 text-sm !text-white/70">
274
- function
275
- </td>
276
- <td className="px-6 py-4 text-sm !text-white/50">-</td>
277
- <td className="px-6 py-4 text-sm !text-white/70">
278
- Click handler for social interactions
279
- </td>
280
- </tr>
281
- <tr className="!bg-black/10">
282
- <td className="px-6 py-4 font-mono text-sm !text-zinc-300">
283
- ...svgProps
284
- </td>
285
- <td className="px-6 py-4 text-sm !text-white/70">
286
- SVGProps
287
- </td>
288
- <td className="px-6 py-4 text-sm !text-white/50">-</td>
289
- <td className="px-6 py-4 text-sm !text-white/70">
290
- All standard SVG element props
291
- </td>
292
- </tr>
293
- </tbody>
294
- </table>
295
- </div>
296
-
297
- <div className="rounded-lg border border-zinc-500/20 bg-zinc-500/10 p-4">
298
- <div className="flex items-center gap-2 text-sm text-zinc-200">
299
- <ThreadsIcon className="h-4 w-4" />
300
- <span>
301
- <strong>Brand Guidelines:</strong> Threads typically uses
302
- black/white monochrome design for clean, text-focused
303
- branding that emphasizes conversation over visual content.
304
- </span>
305
- </div>
306
- </div>
307
- </div>
308
-
309
- {/* Size Variations */}
310
- <div className="!space-y-8">
311
- <h2 className="text-center text-3xl font-bold !text-white">
312
- Size Variations
313
- </h2>
314
- <div className="rounded-lg border border-white/10 bg-white/5 p-8">
315
- <div className="!space-y-6">
316
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
317
- <div className="!space-y-4">
318
- <h3 className="text-lg font-semibold !text-zinc-300">
319
- Standard Sizes
320
- </h3>
321
- <div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
322
- <div className="text-center">
323
- <ThreadsIcon className="!mx-auto mb-2 h-3 w-3 text-white" />
324
- <span className="text-xs text-white/60">12px</span>
325
- </div>
326
- <div className="text-center">
327
- <ThreadsIcon className="!mx-auto mb-2 h-4 w-4 text-white" />
328
- <span className="text-xs text-white/60">16px</span>
329
- </div>
330
- <div className="text-center">
331
- <ThreadsIcon className="!mx-auto mb-2 h-5 w-5 text-white" />
332
- <span className="text-xs text-white/60">20px</span>
333
- </div>
334
- <div className="text-center">
335
- <ThreadsIcon className="!mx-auto mb-2 h-6 w-6 text-white" />
336
- <span className="text-xs text-white/60">24px</span>
337
- </div>
338
- <div className="text-center">
339
- <ThreadsIcon className="!mx-auto mb-2 h-8 w-8 text-white" />
340
- <span className="text-xs text-white/60">32px</span>
341
- </div>
342
- <div className="text-center">
343
- <ThreadsIcon className="!mx-auto mb-2 h-12 w-12 text-white" />
344
- <span className="text-xs text-white/60">48px</span>
345
- </div>
346
- </div>
347
- </div>
348
-
349
- <div className="!space-y-4">
350
- <h3 className="text-lg font-semibold !text-zinc-300">
351
- Code Example
352
- </h3>
353
- <div className="rounded-lg bg-black/40 p-4">
354
- <pre className="overflow-x-auto text-sm !text-cyan-300">
355
- {`// Small (16px) - inline social links
356
- <ThreadsIcon className="h-4 w-4" />
357
-
358
- // Medium (24px) - standard buttons
359
- <ThreadsIcon className="h-6 w-6" />
360
-
361
- // Large (32px) - prominent displays
362
- <ThreadsIcon className="h-8 w-8" />
363
-
364
- // Custom size with maintained aspect ratio
365
- <ThreadsIcon width={40} height={40} />`}
366
- </pre>
367
- </div>
368
- </div>
369
- </div>
370
- </div>
371
- </div>
372
- </div>
373
-
374
- {/* Color & Styling */}
375
- <div className="!space-y-8">
376
- <h2 className="text-center text-3xl font-bold !text-white">
377
- Color & Styling
378
- </h2>
379
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
380
- <div className="!space-y-4">
381
- <h3 className="text-lg font-semibold !text-zinc-300">
382
- Brand Colors
383
- </h3>
384
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
385
- <div className="flex items-center gap-4">
386
- <div className="flex h-12 w-12 items-center justify-center rounded-lg bg-black">
387
- <ThreadsIcon className="h-6 w-6 text-white" />
388
- </div>
389
- <div>
390
- <div className="text-sm font-medium text-white">
391
- Official Black
392
- </div>
393
- <div className="text-xs text-white/60">
394
- Primary brand color
395
- </div>
396
- </div>
397
- </div>
398
- <div className="flex items-center gap-4">
399
- <div className="flex h-12 w-12 items-center justify-center rounded-lg border border-gray-300 bg-white">
400
- <ThreadsIcon className="h-6 w-6 text-black" />
401
- </div>
402
- <div>
403
- <div className="text-sm font-medium text-white">
404
- Inverted White
405
- </div>
406
- <div className="text-xs text-white/60">
407
- Light backgrounds
408
- </div>
409
- </div>
410
- </div>
411
- <div className="flex items-center gap-4">
412
- <div className="flex h-12 w-12 items-center justify-center rounded-lg bg-gray-600">
413
- <ThreadsIcon className="h-6 w-6 text-white" />
414
- </div>
415
- <div>
416
- <div className="text-sm font-medium text-white">
417
- Neutral Gray
418
- </div>
419
- <div className="text-xs text-white/60">
420
- Subtle integration
421
- </div>
422
- </div>
423
- </div>
424
- <div className="flex items-center gap-4">
425
- <div className="flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500">
426
- <ThreadsIcon className="h-6 w-6 text-white" />
427
- </div>
428
- <div>
429
- <div className="text-sm font-medium text-white">
430
- Accent Color
431
- </div>
432
- <div className="text-xs text-white/60">
433
- Themed integration
434
- </div>
435
- </div>
436
- </div>
437
- </div>
438
- </div>
439
-
440
- <div className="!space-y-4">
441
- <h3 className="text-lg font-semibold !text-zinc-300">
442
- Usage Examples
443
- </h3>
444
- <div className="rounded-lg bg-black/40 p-4">
445
- <pre className="overflow-x-auto text-sm !text-green-300">
446
- {`// Official black on white
447
- <ThreadsIcon className="h-6 w-6 text-black" />
448
-
449
- // White on black (official)
450
- <ThreadsIcon className="h-6 w-6 text-white" />
451
-
452
- // Inherit parent text color
453
- <ThreadsIcon className="h-5 w-5" />
454
-
455
- // Custom themed color
456
- <ThreadsIcon
457
- className="h-6 w-6 text-blue-500"
458
- />
459
-
460
- // Hover state with transition
461
- <ThreadsIcon
462
- className="h-6 w-6 text-gray-400
463
- hover:text-white transition-colors"
464
- />
465
-
466
- // Background with proper contrast
467
- <div className="bg-black p-2 rounded">
468
- <ThreadsIcon className="h-6 w-6 text-white" />
469
- </div>`}
470
- </pre>
471
- </div>
472
- </div>
473
- </div>
474
- </div>
475
-
476
- {/* Usage Examples */}
477
- <div className="!space-y-8">
478
- <h2 className="text-center text-3xl font-bold !text-white">
479
- Usage Examples
480
- </h2>
481
-
482
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
483
- {/* Social Share Buttons */}
484
- <div className="!space-y-4">
485
- <h3 className="text-lg font-semibold !text-zinc-300">
486
- Social Share Integration
487
- </h3>
488
- <div className="!space-y-4">
489
- <div className="rounded-lg border border-white/10 bg-white/5 p-6">
490
- <div className="space-y-4">
491
- <h4 className="mb-3 text-sm font-medium text-white">
492
- Share this post
493
- </h4>
494
- <div className="flex flex-wrap gap-3">
495
- <button className="flex items-center gap-2 rounded-lg border border-gray-700 bg-black px-4 py-2 transition-colors hover:bg-gray-800">
496
- <ThreadsIcon className="h-4 w-4 text-white" />
497
- <span className="text-sm text-white">
498
- Share on Threads
499
- </span>
500
- </button>
501
- <button className="flex items-center gap-2 rounded-lg border border-gray-700 bg-black px-4 py-2 transition-colors hover:bg-gray-800">
502
- <span className="text-sm text-white">𝕏</span>
503
- <span className="text-sm text-white">
504
- Share on X
505
- </span>
506
- </button>
507
- <button className="flex items-center gap-2 rounded-lg bg-blue-600 px-4 py-2 transition-colors hover:bg-blue-700">
508
- <span className="text-sm text-white">📘</span>
509
- <span className="text-sm text-white">
510
- Facebook
511
- </span>
512
- </button>
513
- </div>
514
- <div className="border-t border-white/10 pt-4">
515
- <div className="flex items-center gap-3">
516
- <span className="text-sm text-white/60">
517
- Follow the conversation:
518
- </span>
519
- <div className="flex gap-2">
520
- <a
521
- href="#"
522
- className="rounded border border-gray-700 bg-black p-2 transition-colors hover:bg-gray-800"
523
- >
524
- <ThreadsIcon className="h-4 w-4 text-white" />
525
- </a>
526
- <a
527
- href="#"
528
- className="rounded border border-gray-700 bg-black p-2 transition-colors hover:bg-gray-800"
529
- >
530
- <span className="text-sm text-white">𝕏</span>
531
- </a>
532
- <a
533
- href="#"
534
- className="rounded bg-blue-600 p-2 transition-colors hover:bg-blue-700"
535
- >
536
- <span className="text-sm text-white">📘</span>
537
- </a>
538
- </div>
539
- </div>
540
- </div>
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
- {`// Social sharing component with Threads
546
- <div className="share-buttons">
547
- <h4>Share this post</h4>
548
- <div className="button-group">
549
- <button
550
- onClick={() => shareToThreads(postUrl, postTitle)}
551
- className="share-btn threads-btn"
552
- >
553
- <ThreadsIcon className="h-4 w-4 text-white" />
554
- <span>Share on Threads</span>
555
- </button>
556
- <TwitterShareButton />
557
- <FacebookShareButton />
558
- </div>
559
- <div className="follow-section">
560
- <span>Follow the conversation:</span>
561
- <div className="social-links">
562
- <a
563
- href="https://threads.net/@username"
564
- className="social-link threads-link"
565
- aria-label="Follow us on Threads"
566
- >
567
- <ThreadsIcon className="h-4 w-4 text-white" />
568
- </a>
569
- <TwitterLink />
570
- <FacebookLink />
571
- </div>
572
- </div>
573
- </div>`}
574
- </pre>
575
- </div>
576
- </div>
577
- </div>
578
-
579
- {/* Discussion Thread Widget */}
580
- <div className="!space-y-4">
581
- <h3 className="text-lg font-semibold !text-zinc-300">
582
- Discussion Thread Widget
583
- </h3>
584
- <div className="!space-y-4">
585
- <div className="rounded-lg border border-white/10 bg-white/5 p-6">
586
- <div className="overflow-hidden rounded-lg border border-white/20 bg-black/50">
587
- <div className="border-b border-white/10 bg-white/5 p-4">
588
- <div className="flex items-center justify-between">
589
- <div className="flex items-center gap-3">
590
- <ThreadsIcon className="h-5 w-5 text-white" />
591
- <div>
592
- <h4 className="text-sm font-semibold text-white">
593
- Latest Discussion
594
- </h4>
595
- <p className="text-xs text-white/60">
596
- Join the conversation on Threads
597
- </p>
598
- </div>
599
- </div>
600
- <a
601
- href="#"
602
- className="text-xs text-zinc-400 transition-colors hover:text-white"
603
- >
604
- View Thread
605
- </a>
606
- </div>
607
- </div>
608
- <div className="space-y-3 p-4">
609
- <div className="flex gap-3">
610
- <div className="flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full bg-white/10">
611
- <span className="text-xs">👤</span>
612
- </div>
613
- <div className="flex-1">
614
- <div className="mb-1 flex items-center gap-2">
615
- <span className="text-sm font-medium text-white">
616
- Alex Chen
617
- </span>
618
- <span className="text-xs text-white/40">
619
- @alexchen
620
- </span>
621
- <span className="text-xs text-white/40">
622
-
623
- </span>
624
- <span className="text-xs text-white/40">
625
- 2h
626
- </span>
627
- </div>
628
- <p className="text-sm text-white/80">
629
- Really excited about the new design system
630
- updates. The accessibility improvements are
631
- game-changing! 🎨
632
- </p>
633
- <div className="mt-2 flex items-center gap-4">
634
- <button className="text-xs text-white/60 transition-colors hover:text-white">
635
- Reply
636
- </button>
637
- <button className="text-xs text-white/60 transition-colors hover:text-white">
638
- 💬 12
639
- </button>
640
- <button className="text-xs text-white/60 transition-colors hover:text-white">
641
- 🔄 8
642
- </button>
643
- <button className="text-xs text-white/60 transition-colors hover:text-white">
644
- ❤️ 24
645
- </button>
646
- </div>
647
- </div>
648
- </div>
649
- <div className="flex gap-3">
650
- <div className="flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full bg-white/10">
651
- <span className="text-xs">👤</span>
652
- </div>
653
- <div className="flex-1">
654
- <div className="mb-1 flex items-center gap-2">
655
- <span className="text-sm font-medium text-white">
656
- Sarah Kim
657
- </span>
658
- <span className="text-xs text-white/40">
659
- @sarahk
660
- </span>
661
- <span className="text-xs text-white/40">
662
-
663
- </span>
664
- <span className="text-xs text-white/40">
665
- 1h
666
- </span>
667
- </div>
668
- <p className="text-sm text-white/80">
669
- @alexchen Totally agree! The color contrast
670
- ratios are so much better now. Perfect for our
671
- vision-impaired users.
672
- </p>
673
- <div className="mt-2 flex items-center gap-4">
674
- <button className="text-xs text-white/60 transition-colors hover:text-white">
675
- Reply
676
- </button>
677
- <button className="text-xs text-white/60 transition-colors hover:text-white">
678
- 💬 5
679
- </button>
680
- <button className="text-xs text-white/60 transition-colors hover:text-white">
681
- 🔄 3
682
- </button>
683
- <button className="text-xs text-white/60 transition-colors hover:text-white">
684
- ❤️ 15
685
- </button>
686
- </div>
687
- </div>
688
- </div>
689
- <div className="border-t border-white/10 pt-3">
690
- <a
691
- href="#"
692
- className="flex items-center gap-2 text-sm text-zinc-400 transition-colors hover:text-white"
693
- >
694
- <ThreadsIcon className="h-4 w-4" />
695
- <span>Continue reading on Threads</span>
696
- </a>
697
- </div>
698
- </div>
699
- </div>
700
- </div>
701
- <div className="rounded-lg bg-black/40 p-4">
702
- <pre className="overflow-x-auto text-sm !text-green-300">
703
- {`// Discussion thread widget
704
- <div className="threads-widget">
705
- <div className="widget-header">
706
- <div className="platform-info">
707
- <ThreadsIcon className="h-5 w-5 text-white" />
708
- <div className="platform-details">
709
- <h3>Latest Discussion</h3>
710
- <p>Join the conversation on Threads</p>
711
- </div>
712
- </div>
713
- <a href={threadsUrl} className="view-thread-link">
714
- View Thread
47
+ <a href="https://threads.net/@handle" target="_blank">
48
+ <ThreadsIcon className="h-5 w-5 text-fm-icon-active" />
715
49
  </a>
716
- </div>
717
- <div className="thread-posts">
718
- {threadPosts.map(post => (
719
- <div key={post.id} className="thread-post">
720
- <UserAvatar user={post.author} />
721
- <div className="post-content">
722
- <PostHeader post={post} />
723
- <PostText text={post.text} />
724
- <PostActions
725
- post={post}
726
- onReply={handleReply}
727
- onRepost={handleRepost}
728
- onLike={handleLike}
729
- />
730
- </div>
731
- </div>
732
- ))}
733
- </div>
734
- <div className="widget-footer">
735
- <a href={threadsUrl} className="continue-reading">
736
- <ThreadsIcon className="h-4 w-4" />
737
- <span>Continue reading on Threads</span>
738
- </a>
739
- </div>
740
- </div>`}
741
- </pre>
742
- </div>
743
- </div>
744
- </div>
745
-
746
- {/* Community Profile */}
747
- <div className="!space-y-4">
748
- <h3 className="text-lg font-semibold !text-zinc-300">
749
- Community Profile
750
- </h3>
751
- <div className="!space-y-4">
752
- <div className="rounded-lg border border-white/10 bg-white/5 p-6">
753
- <div className="overflow-hidden rounded-lg border border-white/20 bg-black/50">
754
- <div className="relative h-32 bg-gradient-to-r from-gray-800 to-zinc-800">
755
- <div className="absolute -bottom-8 left-6">
756
- <div className="flex h-16 w-16 items-center justify-center rounded-full border-4 border-black/50 bg-white/10">
757
- <span className="text-2xl">💬</span>
758
- </div>
759
- </div>
760
- </div>
761
- <div className="p-6 pt-12">
762
- <div className="flex items-start justify-between">
763
- <div>
764
- <h4 className="text-lg font-semibold text-white">
765
- Design Community
766
- </h4>
767
- <p className="text-sm text-white/60">
768
- @designcommunity
769
- </p>
770
- <p className="mt-2 text-sm text-white/70">
771
- A space for designers to share ideas, get
772
- feedback, and discuss the latest trends in
773
- UI/UX 🎨
774
- </p>
775
- </div>
776
- <button className="rounded-lg bg-white px-4 py-2 font-medium text-black transition-colors hover:bg-gray-100">
777
- Follow
778
- </button>
779
- </div>
780
- <div className="mt-4 flex items-center gap-6">
781
- <div className="text-sm">
782
- <span className="font-medium text-white">
783
- 2,847
784
- </span>
785
- <span className="ml-1 text-white/60">
786
- Threads
787
- </span>
788
- </div>
789
- <div className="text-sm">
790
- <span className="font-medium text-white">
791
- 15.2k
792
- </span>
793
- <span className="ml-1 text-white/60">
794
- Followers
795
- </span>
796
- </div>
797
- <div className="text-sm">
798
- <span className="font-medium text-white">
799
- 943
800
- </span>
801
- <span className="ml-1 text-white/60">
802
- Following
803
- </span>
804
- </div>
805
- </div>
806
- <div className="mt-4 flex items-center gap-4 border-t border-white/10 pt-4">
807
- <span className="text-sm text-white/60">
808
- Join the conversation:
809
- </span>
810
- <div className="flex gap-2">
811
- <a
812
- href="#"
813
- className="rounded border border-gray-700 bg-black p-2 transition-colors hover:bg-gray-800"
814
- aria-label="Follow on Threads"
815
- >
816
- <ThreadsIcon className="h-4 w-4 text-white" />
817
- </a>
818
- <a
819
- href="#"
820
- className="rounded bg-blue-500 p-2 transition-colors hover:bg-blue-600"
821
- aria-label="Connect on Discord"
822
- >
823
- <span className="text-sm text-white">🎮</span>
824
- </a>
825
- <a
826
- href="#"
827
- className="rounded bg-gray-600 p-2 transition-colors hover:bg-gray-700"
828
- aria-label="View Website"
829
- >
830
- <span className="text-sm text-white">🌐</span>
831
- </a>
832
- </div>
833
- </div>
834
- </div>
835
- </div>
836
- </div>
837
- <div className="rounded-lg bg-black/40 p-4">
838
- <pre className="overflow-x-auto text-sm !text-green-300">
839
- {`// Community profile with Threads integration
840
- <div className="community-profile">
841
- <div className="profile-header">
842
- <CoverImage />
843
- <CommunityAvatar />
844
- </div>
845
- <div className="profile-content">
846
- <div className="community-info">
847
- <CommunityDetails community={community} />
848
- <FollowButton communityId={community.id} />
849
- </div>
850
- <CommunityStats stats={community.stats} />
851
- <div className="social-links">
852
- <span>Join the conversation:</span>
853
- <div className="link-group">
854
- <a
855
- href={community.socialLinks.threads}
856
- className="social-link threads-link"
857
- aria-label="Follow on Threads"
858
- >
859
- <ThreadsIcon className="h-4 w-4 text-white" />
860
- </a>
861
- <DiscordLink url={community.socialLinks.discord} />
862
- <WebsiteLink url={community.website} />
863
- </div>
864
- </div>
865
- </div>
866
- </div>`}
867
- </pre>
868
- </div>
869
- </div>
870
- </div>
871
-
872
- {/* Text-Based Content Hub */}
873
- <div className="!space-y-4">
874
- <h3 className="text-lg font-semibold !text-zinc-300">
875
- Text-Based Content Hub
876
- </h3>
877
- <div className="!space-y-4">
878
- <div className="rounded-lg border border-white/10 bg-white/5 p-6">
879
- <div className="overflow-hidden rounded-lg border border-white/20 bg-black/50">
880
- <div className="p-6">
881
- <div className="mb-6 text-center">
882
- <h4 className="mb-2 text-xl font-semibold text-white">
883
- Join the Conversation
884
- </h4>
885
- <p className="text-sm text-white/70">
886
- Share your thoughts and connect with like-minded
887
- people
888
- </p>
889
- </div>
890
- <div className="mb-6 grid grid-cols-2 gap-4">
891
- <div className="rounded-lg border border-white/10 bg-white/5 p-4">
892
- <div className="mb-3 flex h-12 w-12 items-center justify-center rounded-lg border border-gray-700 bg-black">
893
- <ThreadsIcon className="h-6 w-6 text-white" />
894
- </div>
895
- <h5 className="mb-2 text-sm font-semibold text-white">
896
- Text Discussions
897
- </h5>
898
- <p className="text-xs text-white/60">
899
- Share your thoughts in threaded conversations
900
- with the community
901
- </p>
902
- </div>
903
- <div className="rounded-lg border border-white/10 bg-white/5 p-4">
904
- <div className="mb-3 flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
905
- <span className="text-xl">🧵</span>
906
- </div>
907
- <h5 className="mb-2 text-sm font-semibold text-white">
908
- Follow Threads
909
- </h5>
910
- <p className="text-xs text-white/60">
911
- Stay updated on conversations that matter to
912
- you
913
- </p>
914
- </div>
915
- <div className="rounded-lg border border-white/10 bg-white/5 p-4">
916
- <div className="mb-3 flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
917
- <span className="text-xl">🔗</span>
918
- </div>
919
- <h5 className="mb-2 text-sm font-semibold text-white">
920
- Share Ideas
921
- </h5>
922
- <p className="text-xs text-white/60">
923
- Connect your content across different
924
- platforms
925
- </p>
926
- </div>
927
- <div className="rounded-lg border border-white/10 bg-white/5 p-4">
928
- <div className="mb-3 flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
929
- <span className="text-xl">👥</span>
930
- </div>
931
- <h5 className="mb-2 text-sm font-semibold text-white">
932
- Build Community
933
- </h5>
934
- <p className="text-xs text-white/60">
935
- Create meaningful connections through
936
- authentic conversations
937
- </p>
938
- </div>
939
- </div>
940
- <div className="text-center">
941
- <a
942
- href="#"
943
- className="inline-flex items-center gap-2 rounded-lg border border-gray-700 bg-black px-6 py-3 font-medium text-white transition-colors hover:bg-gray-800"
944
- >
945
- <ThreadsIcon className="h-5 w-5" />
946
- <span>Start a Thread</span>
947
- </a>
948
- </div>
949
- </div>
950
- </div>
951
- </div>
952
- <div className="rounded-lg bg-black/40 p-4">
953
- <pre className="overflow-x-auto text-sm !text-green-300">
954
- {`// Text-based content hub with Threads integration
955
- <div className="content-hub">
956
- <div className="hub-header">
957
- <h2>Join the Conversation</h2>
958
- <p>Share your thoughts and connect with like-minded people</p>
959
- </div>
960
- <div className="feature-grid">
961
- <div className="feature-card threads-feature">
962
- <div className="feature-icon">
963
- <ThreadsIcon className="h-6 w-6 text-white" />
964
- </div>
965
- <h3>Text Discussions</h3>
966
- <p>Share your thoughts in threaded conversations with the community</p>
967
- </div>
968
- <FollowThreadsFeature />
969
- <ShareIdeasFeature />
970
- <BuildCommunityFeature />
971
- </div>
972
- <div className="cta-section">
973
- <a
974
- href={threadsCreateUrl}
975
- className="cta-button threads-cta"
976
- >
977
- <ThreadsIcon className="h-5 w-5" />
978
- <span>Start a Thread</span>
979
- </a>
980
- </div>
981
- </div>`}
982
- </pre>
983
- </div>
984
- </div>
985
- </div>
986
- </div>
987
- </div>
988
-
989
- {/* Accessibility */}
990
- <div className="!space-y-8">
991
- <h2 className="text-center text-3xl font-bold !text-white">
992
- Accessibility Features
993
- </h2>
994
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
995
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
996
- <h3 className="text-lg font-semibold !text-green-300">
997
- ✅ Built-in Features
998
- </h3>
999
- <ul className="!space-y-2 text-sm !text-white/70">
1000
- <li className="!text-white/70">
1001
- Uses Radix UI AccessibleIcon wrapper
1002
- </li>
1003
- <li className="!text-white/70">
1004
- Provides screen reader label "Threads icon"
1005
- </li>
1006
- <li className="!text-white/70">
1007
- Supports keyboard navigation when interactive
1008
- </li>
1009
- <li className="!text-white/70">
1010
- High contrast design for visibility
1011
- </li>
1012
- <li className="!text-white/70">
1013
- Maintains aspect ratio across all sizes
1014
- </li>
1015
- </ul>
1016
- </div>
1017
-
1018
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
1019
- <h3 className="text-lg font-semibold !text-zinc-300">
1020
- 💡 Best Practices
1021
- </h3>
1022
- <ul className="!space-y-2 text-sm text-white/70">
1023
- <li className="!text-white/70">
1024
- Always provide descriptive aria-labels for Threads
1025
- actions
1026
- </li>
1027
- <li className="!text-white/70">
1028
- Use Threads' text-focused branding consistently
1029
- </li>
1030
- <li className="!text-white/70">
1031
- Ensure sufficient contrast with monochrome design
1032
- </li>
1033
- <li className="!text-white/70">
1034
- Include external link indicators for Threads URLs
1035
- </li>
1036
- <li className="!text-white/70">
1037
- Consider conversation context in related features
1038
- </li>
1039
- </ul>
1040
- </div>
1041
- </div>
1042
-
1043
- <div className="rounded-lg border border-white/10 bg-white/5 p-6">
1044
- <h3 className="mb-4 text-lg font-semibold !text-blue-300">
1045
- Proper ARIA Implementation
1046
- </h3>
1047
- <div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
1048
- <div className="rounded-lg bg-black/40 p-4">
1049
- <pre className="overflow-x-auto text-sm !text-cyan-300">
1050
- {`// Threads profile link
1051
- <a
1052
- href="https://threads.net/@username"
1053
- className="threads-link"
1054
- aria-label="Follow @username on Threads"
1055
- target="_blank"
1056
- rel="noopener noreferrer"
1057
- >
1058
- <ThreadsIcon className="h-5 w-5 text-white" />
1059
- </a>
1060
-
1061
- // Discussion thread widget
1062
- <div className="threads-widget">
1063
- <h2 id="discussion-title">Latest Discussion</h2>
1064
- <div
1065
- className="thread-posts"
1066
- role="feed"
1067
- aria-labelledby="discussion-title"
1068
- >
1069
- {posts.map(post => (
1070
- <article
1071
- key={post.id}
1072
- aria-label={post.author.name + " posted: " + post.text}
1073
- >
1074
- <PostContent post={post} />
1075
- </article>
1076
- ))}
1077
- </div>
1078
- <a
1079
- href={threadsUrl}
1080
- aria-label="Continue reading this discussion on Threads"
1081
- >
1082
- <ThreadsIcon className="h-4 w-4" />
1083
- <span>Continue reading on Threads</span>
1084
- </a>
1085
- </div>
1086
-
1087
- // Share to Threads button
1088
- <button
1089
- onClick={shareToThreads}
1090
- className="share-btn"
1091
- aria-label="Share this content to Threads"
1092
- >
1093
- <ThreadsIcon className="h-4 w-4" />
1094
- <span>Share on Threads</span>
1095
- </button>
1096
-
1097
- // Community profile with Threads emphasis
1098
- <div className="community-profile">
1099
- <div className="profile-header">
1100
- <h1>{community.name}</h1>
1101
- <div className="community-social">
1102
- <a
1103
- href={community.threads}
1104
- className="primary-social-link"
1105
- aria-label={"Join " + community.name + " community on Threads"}
1106
- >
1107
- <ThreadsIcon className="h-5 w-5" />
1108
- <span className="sr-only">Primary discussion platform</span>
1109
- </a>
1110
- </div>
1111
- </div>
1112
- </div>
1113
-
1114
- // Thread creation widget
1115
- <div
1116
- className="thread-composer"
1117
- role="form"
1118
- aria-label="Create a new thread"
1119
- >
1120
- <textarea
1121
- aria-label="What's on your mind?"
1122
- placeholder="Start a thread..."
1123
- />
1124
- <button
1125
- type="submit"
1126
- aria-label="Post thread to Threads"
1127
- >
1128
- <ThreadsIcon className="h-4 w-4" />
1129
- <span>Post Thread</span>
1130
- </button>
1131
- </div>`}
1132
- </pre>
1133
- </div>
1134
- <div className="!space-y-4">
1135
- <p className="text-sm !text-white/70">
1136
- When using ThreadsIcon for conversation integration,
1137
- always provide clear context about the discussion topic
1138
- and ensure users understand the threading nature of the
1139
- platform.
1140
- </p>
1141
- <div className="rounded-lg border border-zinc-500/20 bg-zinc-500/10 p-4">
1142
- <div className="flex items-center gap-2 text-sm text-zinc-200">
1143
- <ThreadsIcon className="h-4 w-4" />
1144
- <span>
1145
- Consider conversation flow and threading context for
1146
- screen readers
1147
- </span>
1148
- </div>
1149
- </div>
1150
- </div>
1151
- </div>
1152
- </div>
1153
- </div>
1154
-
1155
- {/* Related Icons */}
1156
- <div className="!space-y-8">
1157
- <h2 className="text-center text-3xl font-bold !text-white">
1158
- Related Icons
1159
- </h2>
1160
- <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
1161
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
1162
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-black">
1163
- <span className="!text-2xl !text-white">𝕏</span>
1164
- </div>
1165
- <div>
1166
- <div className="font-medium text-white">TwitterXIcon</div>
1167
- <div className="text-xs text-white/60">
1168
- Social network
1169
- </div>
1170
- </div>
1171
- </div>
1172
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
1173
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-gradient-to-br from-pink-500 via-purple-500 to-orange-500">
1174
- <span className="!text-2xl !text-white">📷</span>
1175
- </div>
1176
- <div>
1177
- <div className="font-medium text-white">
1178
- InstagramIcon
1179
- </div>
1180
- <div className="text-xs text-white/60">
1181
- Visual content
1182
- </div>
1183
- </div>
1184
- </div>
1185
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
1186
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
1187
- <span className="!text-2xl !text-white">📘</span>
1188
- </div>
1189
- <div>
1190
- <div className="font-medium text-white">FacebookIcon</div>
1191
- <div className="text-xs text-white/60">
1192
- Social platform
1193
- </div>
1194
- </div>
1195
- </div>
1196
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
1197
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-600/20">
1198
- <span className="!text-2xl !text-white">💼</span>
1199
- </div>
1200
- <div>
1201
- <div className="font-medium text-white">LinkedInIcon</div>
1202
- <div className="text-xs text-white/60">
1203
- Professional network
1204
- </div>
1205
- </div>
1206
- </div>
1207
- </div>
1208
- </div>
1209
- </div>
1210
-
1211
- {/* Footer */}
1212
- <div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
1213
- <div className="!mx-auto max-w-7xl px-6 py-8">
1214
- <div className="!space-y-4 text-center">
1215
- <p className="!text-white/60">
1216
- ThreadsIcon is part of the Aural UI icon library, built with
1217
- accessibility and conversation platform integration best
1218
- practices in mind.
1219
- </p>
1220
- <p className="text-sm !text-white/40">
1221
- All icons use Radix UI's AccessibleIcon for screen reader
1222
- compatibility and follow WCAG guidelines for social platform
1223
- recognition and conversation accessibility.
1224
- </p>
1225
- </div>
1226
- </div>
1227
- </div>
1228
- </div>
1229
- </>
50
+ )
51
+ }`,
52
+ livePreview: (
53
+ <a href="#" target="_blank" rel="noreferrer">
54
+ <ThreadsIcon className="text-fm-icon-active 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: "LinkedInIcon",
67
+ description: "LinkedIn brand mark",
68
+ icon: LinkedInIcon,
69
+ accentToken: "positive",
70
+ },
71
+ {
72
+ name: "TwitterXIcon",
73
+ description: "X (Twitter) brand mark",
74
+ icon: TwitterXIcon,
75
+ accentToken: "warning",
76
+ },
77
+ {
78
+ name: "YoutubeIcon",
79
+ description: "YouTube brand mark",
80
+ icon: YoutubeIcon,
81
+ accentToken: "negative",
82
+ },
83
+ ]}
84
+ />
1230
85
  ),
1231
86
  },
1232
87
  },
1233
88
  tags: ["autodocs"],
1234
89
  argTypes: {
1235
- width: {
1236
- control: { type: "range", min: 8, max: 96, step: 2 },
1237
- description: "Width of the icon (maintains aspect ratio)",
1238
- },
1239
- withAccessibility: {
1240
- control: "boolean",
1241
- description: "Whether to wrap the icon with accessibility features",
1242
- },
1243
- height: {
1244
- control: { type: "range", min: 8, max: 96, step: 2 },
1245
- description: "Height of the icon (maintains aspect ratio)",
1246
- },
1247
- fill: {
1248
- control: "color",
1249
- description: "Fill color of the Threads @ symbol",
1250
- },
1251
90
  className: {
1252
91
  control: "text",
1253
- description: "CSS classes for styling and sizing",
92
+ description: "CSS classes including color token",
1254
93
  },
1255
- onClick: {
1256
- action: "clicked",
1257
- description: "Click handler for social interactions",
94
+ withAccessibility: {
95
+ control: "boolean",
96
+ description: "Wrap with accessibility label",
1258
97
  },
1259
98
  },
1260
99
  }
@@ -1262,234 +101,124 @@ function SocialShare() {
1262
101
  export default meta
1263
102
  type Story = StoryObj<typeof ThreadsIcon>
1264
103
 
1265
- // Story parameters for consistent dark theme
1266
- const storyParameters = {
1267
- backgrounds: {
1268
- default: "dark",
1269
- values: [
1270
- { name: "dark", value: "#0a0a0a" },
1271
- { name: "darker", value: "#000000" },
1272
- ],
1273
- },
1274
- }
1275
-
1276
104
  export const Default: Story = {
1277
105
  args: {
1278
- className: "h-8 w-8 text-white",
106
+ className: "h-6 w-6 text-fm-icon-active",
1279
107
  withAccessibility: true,
1280
108
  },
1281
- parameters: storyParameters,
1282
109
  render: (args) => (
1283
- <div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
110
+ <IconDefaultCanvas>
1284
111
  <ThreadsIcon {...args} />
1285
- </div>
112
+ </IconDefaultCanvas>
1286
113
  ),
1287
114
  }
1288
115
 
1289
116
  export const SizeVariations: Story = {
1290
- parameters: {
1291
- ...storyParameters,
1292
- docs: {
1293
- description: {
1294
- story:
1295
- "ThreadsIcon in different sizes, from small inline social links to large conversation displays.",
1296
- },
1297
- },
1298
- },
1299
- render: () => (
1300
- <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">
1301
- <div className="text-center">
1302
- <ThreadsIcon className="!mx-auto mb-2 h-3 w-3 text-white" />
1303
- <span className="text-xs text-white/60">12px</span>
1304
- </div>
1305
- <div className="text-center">
1306
- <ThreadsIcon className="!mx-auto mb-2 h-4 w-4 text-white" />
1307
- <span className="text-xs text-white/60">16px</span>
1308
- </div>
1309
- <div className="text-center">
1310
- <ThreadsIcon className="!mx-auto mb-2 h-5 w-5 text-white" />
1311
- <span className="text-xs text-white/60">20px</span>
1312
- </div>
1313
- <div className="text-center">
1314
- <ThreadsIcon className="!mx-auto mb-2 h-6 w-6 text-white" />
1315
- <span className="text-xs text-white/60">24px</span>
1316
- </div>
1317
- <div className="text-center">
1318
- <ThreadsIcon className="!mx-auto mb-2 h-8 w-8 text-white" />
1319
- <span className="text-xs text-white/60">32px</span>
1320
- </div>
1321
- <div className="text-center">
1322
- <ThreadsIcon className="!mx-auto mb-2 h-12 w-12 text-white" />
1323
- <span className="text-xs text-white/60">48px</span>
1324
- </div>
1325
- </div>
1326
- ),
117
+ render: () => <IconSizeVariations icon={ThreadsIcon} />,
1327
118
  }
1328
119
 
1329
120
  export const BrandColors: Story = {
1330
- parameters: {
1331
- ...storyParameters,
1332
- docs: {
1333
- description: {
1334
- story:
1335
- "ThreadsIcon in different brand-compliant colors for various design contexts.",
1336
- },
1337
- },
1338
- },
1339
121
  render: () => (
1340
- <div className="grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8 md:grid-cols-4">
1341
- <div className="text-center">
1342
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg bg-black">
1343
- <ThreadsIcon className="h-8 w-8 text-white" />
1344
- </div>
1345
- <div className="text-sm font-medium text-white">Official Black</div>
1346
- <div className="text-xs text-white/60">Primary brand</div>
1347
- </div>
1348
- <div className="text-center">
1349
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-gray-300 bg-white">
1350
- <ThreadsIcon className="h-8 w-8 text-black" />
1351
- </div>
1352
- <div className="text-sm font-medium text-white">Inverted White</div>
1353
- <div className="text-xs text-white/60">Light backgrounds</div>
1354
- </div>
1355
- <div className="text-center">
1356
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg bg-gray-600">
1357
- <ThreadsIcon className="h-8 w-8 text-white" />
1358
- </div>
1359
- <div className="text-sm font-medium text-white">Neutral Gray</div>
1360
- <div className="text-xs text-white/60">Subtle integration</div>
1361
- </div>
1362
- <div className="text-center">
1363
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg bg-blue-500">
1364
- <ThreadsIcon className="h-8 w-8 text-white" />
1365
- </div>
1366
- <div className="text-sm font-medium text-white">Accent Color</div>
1367
- <div className="text-xs text-white/60">Themed integration</div>
1368
- </div>
1369
- </div>
122
+ <IconBrandColors
123
+ icon={ThreadsIcon}
124
+ variants={[
125
+ {
126
+ label: "Brand Dark",
127
+ description: "Recommended",
128
+ cardClassName: "h-24 w-24 bg-black",
129
+ iconClassName: "h-8 w-8 text-white",
130
+ },
131
+ {
132
+ label: "Brand Light",
133
+ description: "Alternate",
134
+ cardClassName:
135
+ "border-fm-divider-secondary h-24 w-24 border bg-white",
136
+ iconClassName: "h-8 w-8 text-black",
137
+ },
138
+ {
139
+ label: "Surface Background",
140
+ description: "Theme surface",
141
+ cardClassName: "bg-fm-surface-secondary h-24 w-24",
142
+ iconClassName: "h-8 w-8 text-white",
143
+ },
144
+ {
145
+ label: "Transparent",
146
+ description: "Original mark",
147
+ cardClassName:
148
+ "border-fm-divider-contrast h-24 w-24 border bg-transparent",
149
+ iconClassName: "h-8 w-8 text-fm-primary",
150
+ },
151
+ ]}
152
+ />
1370
153
  ),
1371
154
  }
1372
155
 
1373
156
  export const UsageExamples: Story = {
1374
- parameters: {
1375
- ...storyParameters,
1376
- docs: {
1377
- description: {
1378
- story:
1379
- "Real-world usage examples showing ThreadsIcon in different conversation and social media contexts.",
1380
- },
1381
- },
1382
- },
1383
157
  render: () => (
1384
- <div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
1385
- {/* Share Button */}
1386
- <div className="!space-y-2">
1387
- <h3 className="text-sm font-medium text-white">Social Share Button</h3>
1388
- <div className="rounded-lg border border-white/10 bg-white/5 p-4">
1389
- <div className="flex gap-3">
1390
- <button className="flex items-center gap-2 rounded-lg border border-gray-700 bg-black px-4 py-2 transition-colors hover:bg-gray-800">
1391
- <ThreadsIcon className="h-4 w-4 text-white" />
1392
- <span className="text-sm text-white">Share on Threads</span>
1393
- </button>
1394
- <button className="flex items-center gap-2 rounded-lg border border-gray-700 bg-black px-4 py-2 transition-colors hover:bg-gray-800">
1395
- <span className="text-sm text-white">𝕏</span>
1396
- <span className="text-sm text-white">Share on X</span>
1397
- </button>
1398
- </div>
1399
- </div>
1400
- </div>
1401
-
1402
- {/* Discussion Widget */}
1403
- <div className="!space-y-2">
1404
- <h3 className="text-sm font-medium text-white">
1405
- Discussion Thread Widget
1406
- </h3>
1407
- <div className="rounded-lg border border-white/10 bg-white/5 p-4">
1408
- <div className="mb-3 flex items-center justify-between">
1409
- <div className="flex items-center gap-2">
1410
- <ThreadsIcon className="h-4 w-4 text-white" />
1411
- <span className="text-sm font-medium text-white">
1412
- Latest Discussion
1413
- </span>
1414
- </div>
1415
- <a
1416
- href="#"
1417
- className="text-xs text-zinc-400 transition-colors hover:text-white"
1418
- >
1419
- View Thread
1420
- </a>
1421
- </div>
1422
- <div className="space-y-2">
1423
- <div className="flex gap-2">
1424
- <div className="flex h-6 w-6 items-center justify-center rounded-full bg-white/10">
1425
- <span className="text-xs">👤</span>
1426
- </div>
1427
- <div className="flex-1">
1428
- <div className="text-xs text-white/60">Alex Chen • 2h</div>
1429
- <div className="text-sm text-white/80">
1430
- Really excited about the new updates! 🎨
1431
- </div>
1432
- </div>
1433
- </div>
1434
- </div>
1435
- </div>
1436
- </div>
158
+ <IconUsageCanvas>
159
+ <IconUsageSection title="Follow on Threads">
160
+ <a
161
+ href="#"
162
+ className="flex items-center gap-2 rounded-xl bg-black px-4 py-2"
163
+ target="_blank"
164
+ rel="noreferrer"
165
+ >
166
+ <ThreadsIcon className="h-4 w-4 text-white" />
167
+ <span className="font-fm-text text-sm font-medium text-white">
168
+ Follow on Threads
169
+ </span>
170
+ </a>
171
+ </IconUsageSection>
1437
172
 
1438
- {/* Social Links */}
1439
- <div className="!space-y-2">
1440
- <h3 className="text-sm font-medium text-white">Social Media Links</h3>
1441
- <div className="rounded-lg border border-white/10 bg-white/5 p-4">
1442
- <div className="flex items-center gap-3">
1443
- <span className="text-sm text-white/60">
1444
- Follow the conversation:
1445
- </span>
1446
- <div className="flex gap-2">
173
+ <IconUsageSection title="Social Links Row">
174
+ <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">
175
+ {[ThreadsIcon, TwitterXIcon, InstagramIcon, LinkedInIcon].map(
176
+ (Icon, i) => (
1447
177
  <a
178
+ key={i}
1448
179
  href="#"
1449
- className="rounded border border-gray-700 bg-black p-2 transition-colors hover:bg-gray-800"
180
+ className="border-fm-divider-secondary flex h-10 w-10 items-center justify-center rounded-xl border"
181
+ target="_blank"
182
+ rel="noreferrer"
1450
183
  >
1451
- <ThreadsIcon className="h-4 w-4 text-white" />
184
+ <Icon className="text-fm-icon-active h-5 w-5" />
1452
185
  </a>
1453
- <a
1454
- href="#"
1455
- className="rounded border border-gray-700 bg-black p-2 transition-colors hover:bg-gray-800"
1456
- >
1457
- <span className="text-sm text-white">𝕏</span>
1458
- </a>
1459
- <a
1460
- href="#"
1461
- className="rounded bg-blue-600 p-2 transition-colors hover:bg-blue-700"
1462
- >
1463
- <span className="text-sm text-white">📘</span>
1464
- </a>
1465
- </div>
1466
- </div>
186
+ )
187
+ )}
188
+ </div>
189
+ </IconUsageSection>
190
+
191
+ <IconUsageSection title="Share Sheet">
192
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm space-y-px overflow-hidden rounded-xl border">
193
+ {[
194
+ { label: "Share on Threads", icon: ThreadsIcon },
195
+ { label: "Share on X", icon: TwitterXIcon },
196
+ { label: "Share on Instagram", icon: InstagramIcon },
197
+ ].map(({ label, icon: Icon }) => (
198
+ <button
199
+ key={label}
200
+ className="border-fm-divider-secondary flex w-full items-center gap-3 border-b px-4 py-3 last:border-b-0"
201
+ >
202
+ <Icon className="text-fm-icon-active h-4 w-4" />
203
+ <span className="text-fm-primary font-fm-text text-sm">
204
+ {label}
205
+ </span>
206
+ </button>
207
+ ))}
1467
208
  </div>
1468
- </div>
1469
- </div>
209
+ </IconUsageSection>
210
+ </IconUsageCanvas>
1470
211
  ),
1471
212
  }
1472
213
 
1473
214
  export const Playground: Story = {
1474
- parameters: {
1475
- ...storyParameters,
1476
- docs: {
1477
- description: {
1478
- story:
1479
- "Interactive playground to experiment with different ThreadsIcon configurations.",
1480
- },
1481
- },
1482
- },
1483
215
  args: {
1484
- width: 24,
1485
- height: 24,
1486
- className: "text-white",
216
+ className: "h-8 w-8 text-fm-icon-active",
217
+ withAccessibility: true,
1487
218
  },
1488
219
  render: (args) => (
1489
- <div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
1490
- <div className="rounded-lg border border-white/10 bg-white/5 p-8">
1491
- <ThreadsIcon {...args} />
1492
- </div>
1493
- </div>
220
+ <IconPlaygroundCanvas>
221
+ <ThreadsIcon {...args} />
222
+ </IconPlaygroundCanvas>
1494
223
  ),
1495
224
  }