File size: 13,585 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 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 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 |
const docsLinks: NavItem = {
title: "Docs",
url: "docs",
items: [
{
title: "Get Started",
url: "get-started",
items: [
{
title: "Overview",
items: [
{ title: "Installation", url: "installation" },
{ title: "Migration", url: "migration" },
{ title: "CLI", url: "cli" },
{ title: "LLMs.txt", url: "llms" },
{ title: "Figma", url: "figma" },
{ title: "Contributing", url: "contributing" },
{ title: "Showcase", url: "/showcase", external: true },
],
},
{
title: "Frameworks",
url: "frameworks",
items: [
{ title: "Next.js (App)", url: "next-app" },
{ title: "Next.js (Pages)", url: "next-pages" },
{ title: "Remix", url: "remix" },
{ title: "Storybook", url: "storybook" },
{ title: "Vite", url: "vite" },
],
},
{
title: "Environments",
url: "environments",
items: [
{ title: "Shadow DOM", url: "shadow-dom" },
{ title: "Iframe", url: "iframe" },
],
},
],
},
{
title: "Components",
url: "components",
items: [
{
title: "Concepts",
url: "concepts",
items: [
{ title: "Overview", url: "overview" },
{ title: "Composition", url: "composition" },
{ title: "Animation", url: "animation" },
{ title: "Color Mode", url: "color-mode" },
{ title: "Server Component", url: "server-components" },
{ title: "Testing", url: "testing" },
],
},
{
title: "Layout",
items: [
{ title: "Aspect Ratio", url: "aspect-ratio" },
{ title: "Bleed", url: "bleed" },
{ title: "Box", url: "box" },
{ title: "Center", url: "center" },
{ title: "Container", url: "container" },
{ title: "Flex", url: "flex" },
{ title: "Float", url: "float" },
{ title: "Grid", url: "grid" },
{ title: "Group", url: "group" },
{ title: "SimpleGrid", url: "simple-grid" },
{ title: "Stack", url: "stack" },
{ title: "Wrap", url: "wrap" },
],
},
{
title: "Typography",
items: [
{ title: "Blockquote", url: "blockquote" },
{ title: "Code", url: "code" },
{ title: "Em", url: "em" },
{ title: "Heading", url: "heading" },
{ title: "Highlight", url: "highlight" },
{ title: "Kbd", url: "kbd" },
{ title: "Link", url: "link" },
{ title: "Link Overlay", url: "link-overlay" },
{ title: "List", url: "list" },
{ title: "Mark", url: "mark" },
{ title: "Prose", url: "prose" },
{ title: "Text", url: "text" },
],
},
{
title: "Components",
items: [
{ title: "Accordion", url: "accordion" },
{ title: "Action Bar", url: "action-bar" },
{ title: "Alert", url: "alert" },
{ title: "Avatar", url: "avatar" },
{ title: "Badge", url: "badge" },
{ title: "Breadcrumb", url: "breadcrumb" },
{ title: "Button", url: "button" },
{ title: "Card", url: "card" },
{ title: "Checkbox Card", url: "checkbox-card" },
{ title: "Checkbox", url: "checkbox" },
{ title: "Clipboard", url: "clipboard" },
{ title: "Close Button", url: "close-button" },
{ title: "Collapsible", url: "collapsible" },
{ title: "Combobox", url: "combobox" },
{ title: "Color Picker", url: "color-picker" },
{ title: "Color Swatch", url: "color-swatch" },
{ title: "Data List", url: "data-list" },
{ title: "Dialog", url: "dialog" },
{ title: "Drawer", url: "drawer" },
{ title: "Editable", url: "editable" },
{ title: "Empty State", url: "empty-state" },
{ title: "Field", url: "field" },
{ title: "Fieldset", url: "fieldset" },
{ title: "File Upload", url: "file-upload" },
{ title: "Hover Card", url: "hover-card" },
{ title: "Icon", url: "icon" },
{ title: "Icon Button", url: "icon-button" },
{ title: "Image", url: "image" },
{ title: "Input", url: "input" },
{ title: "Menu", url: "menu" },
{ title: "Number Input", url: "number-input" },
{ title: "Pagination", url: "pagination" },
{ title: "Password Input", url: "password-input" },
{ title: "Pin Input", url: "pin-input" },
{ title: "Popover", url: "popover" },
{ title: "Progress Circle", url: "progress-circle" },
{ title: "Progress", url: "progress" },
{ title: "QR Code", url: "qr-code" },
{ title: "Radio Card", url: "radio-card" },
{ title: "Radio", url: "radio" },
{ title: "Rating", url: "rating" },
{ title: "Segmented Control", url: "segmented-control" },
{ title: "Select (Native)", url: "native-select" },
{ title: "Select", url: "select" },
{ title: "Separator", url: "separator" },
{ title: "Skeleton", url: "skeleton" },
{ title: "Slider", url: "slider" },
{ title: "Spinner", url: "spinner" },
{ title: "Stat", url: "stat" },
{ title: "Status", url: "status" },
{ title: "Steps", url: "steps" },
{ title: "Switch", url: "switch" },
{ title: "Tabs", url: "tabs" },
{ title: "Table", url: "table" },
{ title: "Tag", url: "tag" },
{ title: "Textarea", url: "textarea" },
{ title: "Timeline", url: "timeline" },
{ title: "Toast", url: "toast" },
{ title: "Toggle Tip", url: "toggle-tip" },
{ title: "Tooltip", url: "tooltip" },
{ title: "Tree View", url: "tree-view", status: "beta" },
],
},
{
title: "Utilities",
items: [
{ title: "ClientOnly", url: "client-only" },
{
title: "Download Trigger",
url: "download-trigger",
},
{ title: "EnvironmentProvider", url: "environment-provider" },
{ title: "For", url: "for" },
{ title: "FormatNumber", url: "format-number" },
{ title: "FormatByte", url: "format-byte" },
{ title: "LocaleProvider", url: "locale-provider" },
{ title: "Overlay Manager", url: "overlay-manager" },
{ title: "Presence", url: "presence" },
{ title: "Portal", url: "portal" },
{ title: "Show", url: "show" },
{ title: "Visually Hidden", url: "visually-hidden" },
{ title: "Theme", url: "theme" },
],
},
],
},
{
title: "Charts",
url: "charts",
items: [
{
title: "Overview",
items: [
{ title: "Installation", url: "installation" },
{ title: "useChart", url: "use-chart" },
{ title: "Axis (X and Y)", url: "axes" },
{ title: "Cartesian Grid", url: "cartesian-grid" },
],
},
{
title: "Charts",
items: [
{ title: "Area Chart", url: "area-chart" },
{ title: "Bar Chart", url: "bar-chart" },
{ title: "Bar List", url: "bar-list" },
{ title: "Bar Segment", url: "bar-segment" },
{ title: "Donut Chart", url: "donut-chart" },
{ title: "Line Chart", url: "line-chart" },
{ title: "Pie Chart", url: "pie-chart" },
{ title: "Radar Chart", url: "radar-chart" },
{ title: "Scatter Chart", url: "scatter-chart" },
{ title: "Sparkline", url: "sparkline" },
],
},
],
},
{
title: "Styling",
url: "styling",
items: [
{
title: "Concepts",
items: [
{ title: "Overview", url: "overview" },
{ title: "Chakra Factory", url: "chakra-factory" },
{ title: "Responsive Design", url: "responsive-design" },
{ title: "CSS Variables", url: "css-variables" },
{ title: "Dark Mode", url: "dark-mode" },
{ title: "Color Opacity Modifier", url: "color-opacity-modifier" },
{ title: "Conditional Styles", url: "conditional-styles" },
{ title: "Virtual Color", url: "virtual-color" },
{ title: "Cascade Layers", url: "cascade-layers" },
],
},
{
title: "Compositions",
items: [
{ title: "Text Styles", url: "text-styles" },
{ title: "Layer Styles", url: "layer-styles" },
{ title: "Animation Styles", url: "animation-styles" },
{ title: "Focus Ring", url: "focus-ring" },
],
},
{
title: "Style Props",
url: "style-props",
items: [
{ title: "Background", url: "background" },
{ title: "Border", url: "border" },
{ title: "Display", url: "display" },
{ title: "Effects", url: "effects" },
{ title: "Filters", url: "filters" },
{ title: "Flex and Grid", url: "flex-and-grid" },
{ title: "Interactivity", url: "interactivity" },
{ title: "Layout", url: "layout" },
{ title: "List", url: "list" },
{ title: "Sizing", url: "sizing" },
{ title: "Spacing", url: "spacing" },
{ title: "SVG", url: "svg" },
{ title: "Tables", url: "tables" },
{ title: "Transforms", url: "transforms" },
{ title: "Transitions", url: "transitions" },
{ title: "Typography", url: "typography" },
],
},
],
},
{
title: "Theming",
url: "theming",
items: [
{
title: "Concepts",
items: [
{ title: "Overview", url: "overview" },
{ title: "Tokens", url: "tokens" },
{ title: "Semantic Tokens", url: "semantic-tokens" },
{ title: "Recipes", url: "recipes" },
{ title: "Slot Recipes", url: "slot-recipes" },
],
},
{
title: "Design Tokens",
items: [
{ title: "Animations", url: "animations" },
{ title: "Aspect Ratios", url: "aspect-ratios" },
{ title: "Breakpoints", url: "breakpoints" },
{ title: "Colors", url: "colors" },
{ title: "Cursors", url: "cursors" },
{ title: "Radii", url: "radii" },
{ title: "Shadows", url: "shadows" },
{ title: "Sizes", url: "sizes" },
{ title: "Spacing", url: "spacing" },
{ title: "Typography", url: "typography" },
{ title: "Z-Index", url: "z-index" },
],
},
{
title: "Compositions",
items: [
{ title: "Text Styles", url: "text-styles" },
{ title: "Layer Styles", url: "layer-styles" },
],
},
{
title: "Customization",
url: "customization",
items: [
{ title: "Overview", url: "overview" },
{ title: "Animations", url: "animations" },
{ title: "Breakpoints", url: "breakpoints" },
{ title: "Colors", url: "colors" },
{ title: "Conditions", url: "conditions" },
{ title: "CSS Variables", url: "css-variables" },
{ title: "Global CSS", url: "global-css" },
{ title: "Recipes", url: "recipes" },
{ title: "Sizes", url: "sizes" },
{ title: "Spacing", url: "spacing" },
{ title: "Utilities", url: "utilities" },
],
},
],
},
],
}
export const docsConfig: DocsConfig = {
storybookUrl: "https://storybook.chakra-ui.com",
copyright: "Copyright © {{date}} Segun Adebayo. All Rights Reserved.",
title: "Chakra UI",
titleTemplate: "%s | Chakra UI",
description:
"Simple, Modular & Accessible UI Components for your React Applications",
url: "https://chakra-ui.com",
xHandle: "@chakra-ui",
repoUrl: "https://github.com/chakra-ui/chakra-ui",
repoBranch: "main",
get editUrl() {
return `${this.repoUrl}/tree/${this.repoBranch}/apps/www/content`
},
donationUrl: "https://opencollective.com/chakra-ui",
navigation: [
docsLinks,
{ title: "Playground", url: "playground" },
{ title: "Guides", url: "guides" },
{ title: "Blog", url: "blog" },
],
proUrl: "https://pro.chakra-ui.com?utm_source=chakra-ui.com",
}
interface DocsConfig {
title: string
titleTemplate: string
description: string
storybookUrl: string
copyright: string
url: string
repoUrl: string
editUrl: string
xHandle: string
donationUrl: string
navigation: NavItem[]
repoBranch: string
proUrl: string
}
export interface NavItem {
title: string
url?: string
external?: boolean
status?: string
items?: NavItem[]
}
export interface FlattenNavItem extends Omit<NavItem, "items"> {}
|