url stringlengths 17 87 | content stringlengths 152 81.8k |
|---|---|
https://www.chakra-ui.com/docs/theming/recipes | 1. Concepts
2. Recipes
# Recipes
Writing multi-variant styles with recipes in Chakra.
## [Overview]()
Chakra provides a way to write CSS-in-JS with better performance, developer experience, and composability. One of its key features is the ability to create multi-variant styles with a type-safe runtime API.
A reci... |
https://www.chakra-ui.com/docs/theming/semantic-tokens | 1. Concepts
2. Semantic Tokens
# Semantic Tokens
Leveraging semantic tokens for design decisions in your app.
## [Overview]()
Semantic tokens are tokens that are designed to be used in a specific context. A semantic token consists of the following properties:
- `value`: The value of the token or a reference to an ... |
https://www.chakra-ui.com/docs/theming/slot-recipes | 1. Concepts
2. Slot Recipes
# Slot Recipes
Learn how to style multiple parts components with slot recipes.
## [Overview]()
Slot Recipes come in handy when you need to apply style variations to multiple parts of a component.
A slot recipe consists of these properties:
- `className`: The className prefix to attach ... |
https://www.chakra-ui.com/docs/theming/tokens | 1. Concepts
2. Tokens
# Tokens
Managing design decisions in your app using tokens.
## [Overview]()
Design tokens are the platform-agnostic way to manage design decisions in your application or website. It is a collection of attributes that describe any fundamental/atomic visual style. Each attribute is a key-value ... |
https://www.chakra-ui.com/docs/theming/colors | 1. Design Tokens
2. Colors
# Colors
The list of available color tokens
## [Tokens]()
Chakra UI supports the following color tokens out of the box.
## gray
gray.50
#fafafa
gray.100
#f4f4f5
gray.200
#e4e4e7
gray.300
#d4d4d8
gray.400
#a1a1aa
gray.500
#71717a
gray.600
#52525b
gray.700
#3f3f46
gray.800... |
https://www.chakra-ui.com/docs/theming/aspect-ratios | 1. Design Tokens
2. Aspect Ratios
# Aspect Ratios
The list of available aspect ratios
## [Tokens]()
Chakra UI supports the following aspect ratios out of the box.
## theme.tokens.aspectRatios
square
1 / 1
landscape
4 / 3
portrait
3 / 4
wide
16 / 9
ultrawide
18 / 5
golden
1.618 / 1
[Previous
\
Animatio... |
https://www.chakra-ui.com/docs/theming/breakpoints | 1. Design Tokens
2. Breakpoints
# Breakpoints
The list of available breakpoints
Chakra UI supports the following breakpoints out of the box.
## theme.breakpoints
sm
@media screen (min-width >= 480px)
md
@media screen (min-width >= 768px)
lg
@media screen (min-width >= 1024px)
xl
@media screen (min-... |
https://www.chakra-ui.com/docs/theming/animations | 1. Design Tokens
2. Animations
# Animations
The list of available animation tokens
## [Keyframes]()
Chakra UI supports the following keyframes out of the box.
## theme.keyframes
spin
pulse
ping
bounce
fade-in
fade-out
slide-from-left-full
slide-from-right-full
slide-from-top-full
slide-from-bottom-full
... |
https://www.chakra-ui.com/docs/theming/spacing | 1. Design Tokens
2. Spacing
# Spacing
The list of available spacing tokens
## [Tokens]()
Chakra UI supports the following spacing tokens out of the box.
## theme.tokens.spacing
Name
Value
Pixel
0.5
0.125rem
2px
1
0.25rem
4px
1.5
0.375rem
6px
2
0.5rem
8px
2.5
0.625rem
10px
3
0.75rem
12px
3.5
... |
https://www.chakra-ui.com/docs/theming/sizes | 1. Design Tokens
2. Sizes
# Sizes
The list of available size tokens
## [Tokens]()
Chakra UI supports the following size tokens out of the box.
## tokenSizes
Name
Value
Pixel
0.5
0.125rem
2px
1
0.25rem
4px
1.5
0.375rem
6px
2
0.5rem
8px
2.5
0.625rem
10px
3
0.75rem
12px
3.5
0.875rem
14px
4
1... |
https://www.chakra-ui.com/docs/theming/text-styles | 1. Compositions
2. Text Styles
# Text Styles
The built-in text styles in Chakra UI
Chakra UI provides these text styles out of the box.
textStyle: xs
Chakra UI
textStyle: sm
Chakra UI
textStyle: md
Chakra UI
textStyle: lg
Chakra UI
textStyle: xl
Chakra UI
textStyle: 2xl
Chakra UI
textStyle: 3xl
Chakra ... |
https://www.chakra-ui.com/docs/theming/cursors | 1. Design Tokens
2. Cursors
# Cursors
The cursor tokens used for interactive elements.
## [Overview]()
Chakra UI uses the `cursor` token to define the cursor for interactive elements.
## theme.tokens.cursor
ButtonDisabled
## [Cursor Tokens]()
To customize the cursor for interactive elements in Chakra, set the d... |
https://www.chakra-ui.com/docs/theming/typography | 1. Design Tokens
2. Typography
# Typography
The list of available typography tokens
## [Fonts]()
Here's the list of available fonts.
## theme.tokens.fonts
Ag
heading
```
Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"
`... |
https://www.chakra-ui.com/docs/theming/shadows | 1. Design Tokens
2. Shadows
# Shadows
The list of available shadow tokens
## [Semantic Tokens]()
Chakra UI supports these semantic tokens out of the box.
## theme.semanticTokens.shadows
xs
sm
md
lg
xl
2xl
inner
inset
[Previous
\
Radii](https://www.chakra-ui.com/docs/theming/radii)
[Next
\
Sizes](https://... |
https://www.chakra-ui.com/docs/theming/radii | 1. Design Tokens
2. Radii
# Radii
The list of available border radius tokens
## [Tokens]()
Chakra UI supports the following border radius tokens out of the box.
## theme.tokens.radii
none
```
0
```
2xs
```
0.0625rem
```
xs
```
0.125rem
```
sm
```
0.25rem
```
md
```
0.375rem
```
lg
```
0.5rem
```
xl
`... |
https://www.chakra-ui.com/docs/theming/customization/breakpoints | 1. Customization
2. Breakpoints
# Breakpoints
Learn how to customize breakpoints in Chakra UI
info
Please read the [overview](https://www.chakra-ui.com/docs/theming/customization/overview) first to learn how to properly customize the styling engine, and get type safety.
## [Example]()
Here's an example of how to ... |
https://www.chakra-ui.com/docs/theming/customization/animations | 1. Customization
2. Animations
# Animations
Learn how to customize animations and keyframes in Chakra UI
info
Please read the [overview](https://www.chakra-ui.com/docs/theming/customization/overview) first to learn how to properly customize the styling engine, and get type safety.
## [Keyframes]()
Keyframes are u... |
https://www.chakra-ui.com/docs/theming/z-index | 1. Design Tokens
2. Z-Index
# Z-Index
The list of available z-index tokens
## [Tokens]()
Chakra UI supports the following z-index tokens out of the box.
## theme.tokens.zIndex
Name
Value
hide
-1
base
0
docked
10
dropdown
1000
sticky
1100
banner
1200
overlay
1300
modal
1400
popover
1500
skipNav... |
https://www.chakra-ui.com/docs/theming/layer-styles | 1. Compositions
2. Layer Styles
# Slot Recipes
The built-in layer styles in Chakra UI
Chakra UI provides these text styles out of the box.
layerStyle: fill.*
fill.muted
fill.subtle
fill.surface
fill.solid
layerStyle: outline.*
outline.subtle
outline.solid
layerStyle: indicator.*
indicator.top
indicator.bo... |
https://www.chakra-ui.com/docs/theming/customization/overview | 1. Customization
2. Overview
# Customization
Learn how to customize the Chakra UI theme
## [Overview]()
Chakra UI uses a system of configs to define the default styling system.
- `defaultBaseConfig`: contains the conditions and style properties.
- `defaultConfig`: everything from `defaultBaseConfig` plus the built... |
https://www.chakra-ui.com/docs/theming/customization/colors | 1. Customization
2. Colors
# Colors
Learn how to customize colors in Chakra UI
info
Please read the [overview](https://www.chakra-ui.com/docs/theming/customization/overview) first to learn how to properly customize the styling engine, and get type safety.
## [Tokens]()
To create new colors, we recommend providing... |
https://www.chakra-ui.com/docs/theming/customization/css-variables | 1. Customization
2. CSS Variables
# CSS Variables
Learn how to customize CSS variables in Chakra UI
info
Please read the [overview](https://www.chakra-ui.com/docs/theming/customization/overview) first to learn how to properly customize the styling engine, and get type safety.
## [Variable Root]()
Here's an exampl... |
https://www.chakra-ui.com/docs/theming/customization/conditions | 1. Customization
2. Conditions
# Conditions
Learn how to customize conditions in Chakra UI
info
Please read the [overview](https://www.chakra-ui.com/docs/theming/customization/overview) first to learn how to properly customize the styling engine, and get type safety.
## [Example]()
Here's an example of how to cus... |
https://www.chakra-ui.com/docs/theming/customization/global-css | 1. Customization
2. Global CSS
# Global CSS
Learn how to customize global CSS in Chakra UI
info
Please read the [overview](https://www.chakra-ui.com/docs/theming/customization/overview) first to learn how to properly customize the styling engine, and get type safety.
## [Example]()
Here's an example of how to cus... |
https://www.chakra-ui.com/docs/theming/customization/recipes | 1. Customization
2. Recipes
# Recipes
Learn how to customize recipes and slot recipes in Chakra UI
info
Please read the [overview](https://www.chakra-ui.com/docs/theming/customization/overview) first to learn how to properly customize the styling engine, and get type safety.
## [Recipes]()
### [Extending variants... |
https://www.chakra-ui.com/docs/theming/customization/sizes | 1. Customization
2. Sizes
# Sizes
Learn how to customize sizes in Chakra UI
info
Please read the [overview](https://www.chakra-ui.com/docs/theming/customization/overview) first to learn how to properly customize the styling engine, and get type safety.
## [Example]()
Here's an example of how to customize sizes in... |
https://www.chakra-ui.com/docs/theming/customization/spacing | 1. Customization
2. Spacing
# Spacing
Learn how to customize spacing in Chakra UI
info
Please read the [overview](https://www.chakra-ui.com/docs/theming/customization/overview) first to learn how to properly customize the styling engine, and get type safety.
## [Example]()
Here's an example of how to customize sp... |
https://www.chakra-ui.com/docs/styling/dark-mode | 1. Concepts
2. Dark Mode
# Dark Mode
Learn how to use dark mode in Chakra UI applications
Chakra relies on the `next-themes` library to provide dark mode support. During the installation process, the snippets required to get started are added to your project via the CLI.
## [Setup]()
If you haven't already, you ca... |
https://www.chakra-ui.com/docs/styling/style-props/typography | 1. Style Props
2. Typography
# Typography
JSX style props for styling text
## [Font Family]()
Use the `fontFamily` prop to set the font family of a text element.
```
<Text fontFamily="mono">Hello World</Text>
```
PropCSS PropertyToken Category`fontFamily``font-family``fonts`
## [Font Size]()
Use the `fontSize` ... |
https://www.chakra-ui.com/docs/styling/chakra-factory | 1. Concepts
2. Chakra Factory
# Chakra Factory
Use the chakra factory to create supercharged components
## [Overview]()
Chakra factory serves as a way to create supercharged JSX component from any HTML element to enable them receive JSX style props.
```
import { chakra } from "@chakra-ui/react"
```
The chakra fac... |
https://www.chakra-ui.com/docs/styling/responsive-design | 1. Concepts
2. Responsive Design
# Responsive Design
Learn how to create responsive designs using Chakra UI's built-in responsive style props
## [Overview]()
Responsive design is a fundamental aspect of modern web development, allowing websites and applications to adapt seamlessly to different screen sizes and devi... |
https://www.chakra-ui.com/docs/styling/css-variables | 1. Concepts
2. CSS Variables
# CSS Variables
Using token-aware CSS variables in Chakra UI
## [Overview]()
CSS variables have become the defacto way to create shared values on the web. It's very useful to avoid prop interpolations, classname regeneration, and reduce runtime evaluation of token values.
## [Examples]... |
https://www.chakra-ui.com/docs/styling/layer-styles | 1. Compositions
2. Layer Styles
# Layer Styles
Learn how to use layer styles to define visual properties.
## [Overview]()
Layer styles allows you to define visual properties. The common properties are:
- Color or text color
- Background color
- Border width and border color
- Box shadow
- Opacity
## [Defining lay... |
https://www.chakra-ui.com/docs/styling/cascade-layers | 1. Concepts
2. Cascade Layers
# Cascade Layers
CSS cascade layers refer to the order in which CSS rules are applied to an HTML element.
Chakra UI relies on CSS cascade layers to provide a predictable, performant way to override components. The layers are defined to match that of [Panda CSS](https://panda-css.com).
... |
https://www.chakra-ui.com/docs/styling/text-styles | 1. Compositions
2. Text Styles
# Text Styles
Learn how to use text styles to define typography related properties.
## [Overview]()
Text styles allows you to define textual css properties. The common properties are:
- **Font**: font family, weight, size
- **Line height**
- **Letter spacing**
- **Text decoration**
-... |
https://www.chakra-ui.com/docs/styling/virtual-color | 1. Concepts
2. Virtual Color
# Virtual Color
Create color placeholders for better theming and customization.
## [Overview]()
Chakra allows you to create a virtual color or color placeholder in your project. The `colorPalette` property is how you create virtual color.
```
<Box
colorPalette="blue"
bg={{ base: "c... |
https://www.chakra-ui.com/docs/styling/color-opacity-modifier | 1. Concepts
2. Color Opacity Modifier
# Color opacity modifier
How to dynamically set the opacity of a raw color or color token
Every color related style property can use the [`color-mix`](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color-mix) shortcut to apply opacity to a color.
## [Syntax]()
Th... |
https://www.chakra-ui.com/docs/styling/conditional-styles | 1. Concepts
2. Conditional Styles
# Conditional Styles
Learn how to use conditional and responsive styles in Chakra.
## [Overview]()
Chakra allows you to write styles for pseudo states, media queries, and custom data attributes with the conditional style props.
note
See the list of [built-in conditions]() below.
... |
https://www.chakra-ui.com/playground | Build faster with Premium Chakra UI Components 💎
[Learn more](https://pro.chakra-ui.com?utm_source=chakra-ui.com)
[](https://www.chakra-ui.com/)
[Docs](https://www.chakra-ui.com/docs/get-started/installation)[Playground](https://www.chakra-ui.com/playground)[Guides](https://www.chakra-ui.com/guides)[Blog](https://w... |
https://www.chakra-ui.com/docs/styling/focus-ring | 1. Compositions
2. Focus Ring
# Focus Ring
How to style focus states in Chakra UI
The focus ring is used to identify the currently focused element on your page. While this is important for accessibility, styling every component to have a focus ring can be tedious.
Chakra UI provides the `focusRing` and `focusVisibl... |
https://www.chakra-ui.com/docs/styling/style-props/display | 1. Style Props
2. Display
# Display
Style props for styling display of an element.
## [Display Property]()
```
<Box display="flex" />
// responsive
<Box display={{ base: "none", md: "block" }} />
```
PropCSS PropertyToken Category`display``display`-
## [Hiding Elements]()
### [Hide From]()
Use the `hideFrom` p... |
https://www.chakra-ui.com/docs/styling/style-props/effects | 1. Style Props
2. Effects
# Effects
JSX style props for styling box shadows, opacity, and more
## [Box Shadow]()
Use the `shadow` or `boxShadow` prop to apply a box shadow to an element.
```
// hardcoded values
<Box shadow="12px 12px 2px 1px rgba(0, 0, 255, .2)" />
// token values
<Box shadow="lg" />
```
PropCSS... |
https://www.chakra-ui.com/docs/styling/style-props/filters | 1. Style Props
2. Filters
# Filters
JSX style props for applying various filters to elements.
## [Filter]()
Use the `filter` prop to apply visual effects like blur or color shift to an element.
```
<Box filter="blur(5px)" />
<Box filter="grayscale(80%)" />
```
PropCSS PropertyToken Category`filter``filter`-
## [... |
https://www.chakra-ui.com/docs/styling/style-props/border | 1. Style Props
2. Border
# Border
JSX style props for styling border and border radius.
## [Border Radius]()
### [All sides]()
Use the `rounded` or `borderRadius` props to apply border radius on all sides of an element.
```
<Box borderRadius="md" />
<Box rounded="md" /> // shorthand
```
PropCSS PropertyToken Cat... |
https://www.chakra-ui.com/docs/styling/style-props/flex-and-grid | 1. Style Props
2. Flex and Grid
# Flex and Grid
JSX style props to control flex and grid layouts
## [Flex Basis]()
Use the `flexBasis` prop to set the initial main size of a flex item.
```
<Flex>
<Box flexBasis="25%" />
<Box flexBasis="25%" />
<Box flexBasis="50%" />
</Flex>
```
PropCSS PropertyToken Catego... |
https://www.chakra-ui.com/docs/styling/animation-styles | 1. Compositions
2. Animation Styles
# Animation Styles
Learn how to use animation styles to define reusable motion properties.
## [Overview]()
Animation styles allow you to define reusable animation properties. The goal is to reduce the amount of code needed to animate components.
The supported animation styles ar... |
https://www.chakra-ui.com/docs/styling/style-props/background | 1. Style Props
2. Background
# Background
JSX style props for styling background colors, gradients, and images.
## [Background Attachment]()
Use `bgAttachment` to control the attachment of a background image.
```
<Box bgAttachment="fixed" bgImage="url(...)" />
```
PropCSS PropertyToken Category`bgAttachment`, `ba... |
https://www.chakra-ui.com/docs/styling/style-props/interactivity | 1. Style Props
2. Interactivity
# Interactivity
JSX style props to enhance interactivity on an element
## [Accent Color]()
Use the `accentColor` prop to set the accent color for browser generated user-interface controls.
```
// hardcoded
<label>
<chakra.input type="checkbox" accentColor="#3b82f6" />
</label>
//... |
https://www.chakra-ui.com/docs/styling/style-props/layout | 1. Style Props
2. Layout
# Layout
JSX style props to control the width, height, and spacing of elements
## [Aspect Ratio]()
Use the `aspectRatio` prop to set the desired aspect ratio of an element.
```
// raw value
<Box aspectRatio="1.2" />
// token
<Box aspectRatio="square" />
```
PropCSS PropertyToken Category... |
https://www.chakra-ui.com/docs/styling/style-props/list | 1. Style Props
2. List
# List
JSX style props for customizing list styles.
## [List Style Type]()
Use the `listStyleType` property to set the type of the list marker.
```
<Box as="ul" listStyleType="circle">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</Box>
```
PropCSS PropertyToken Category`listStyleT... |
https://www.chakra-ui.com/docs/styling/style-props/svg | 1. Style Props
2. SVG
# SVG
JSX style props for SVG elements.
## [Fill]()
Use the `fill` prop to set the fill color of an SVG element.
```
<chakra.svg fill="blue.500">
<path d="..." />
</chakra.svg>
```
PropCSS PropertyToken Category`fill``fill``colors`
## [Stroke]()
Use the `stroke` prop to set the stroke co... |
https://www.chakra-ui.com/docs/styling/style-props/sizing | 1. Style Props
2. Sizing
# Sizing
JSX style props for sizing an element
## [Width]()
Use the `width` or `w` property to set the width of an element.
```
// hardcoded values
<Box width="64px" />
<Box w="4rem" />
// token values
<Box width="5" />
<Box w="5" />
```
### [Fractional width]()
Use can set fractional w... |
https://www.chakra-ui.com/docs/styling/style-props/tables | 1. Style Props
2. Tables
# Tables
JSX style props for styling table elements.
## [Border Spacing]()
Control the border-spacing property of a table.
```
<chakra.table borderSpacing="2">
<tbody>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
</tbody>
</chakra.table>
```
PropCSS PropertyToken Cat... |
https://www.chakra-ui.com/docs/styling/style-props/spacing | 1. Style Props
2. Spacing
# Spacing
JSX style props for controlling the padding and margin of an element.
## [Padding]()
### [All sides]()
Use the `padding` prop to apply padding on all sides of an element
```
// raw value
<Box padding="40px" />
<Box p="40px" /> // shorthand
// token value
<Box padding="4" />
<B... |
https://www.chakra-ui.com/docs/styling/style-props/transforms | 1. Style Props
2. Transforms
# Transforms
JSX style props for transforming elements.
## [Scale]()
Use the `scale` prop to control the scale of an element.
```
<Box scale="1.2" />
```
When the `scale` prop is set to `auto`, the `scaleX` and `scaleY` props are used to control the scale of the element.
PropCSS Prop... |
https://www.chakra-ui.com/docs/components/visually-hidden | 1. Utilities
2. Visually Hidden
# Visually Hidden
Used to hide content visually but keep it accessible to screen readers.
PreviewCode
3 Notifications
```
import { Button, VisuallyHidden } from "@chakra-ui/react"
import { LuBell } from "react-icons/lu"
const Demo = () => {
return (
<Button>
<LuBell /> ... |
https://www.chakra-ui.com/docs/styling/style-props/transitions | 1. Style Props
2. Transitions
# Transitions
JSX style props for controlling an element's transition and animation.
## [Transition]()
Use the `transition` prop to control the transition of an element.
```
// hardcoded value
<Box bg="red.400" _hover={{ bg: "red.500" }} transition="background 0.2s ease-in-out">
Hov... |
https://www.chakra-ui.com/docs/components/concepts/animation | 1. Concepts
2. Animation
# Animation
Using CSS animations to animate Chakra UI components
We recommend using CSS animations to animate your Chakra UI components. This approach is performant, straightforward and provides a lot of flexibility.
You can animate both the mounting and unmounting phases of your components... |
https://www.chakra-ui.com/docs/components/aspect-ratio | 1. Layout
2. Aspect Ratio
# Aspect Ratio
Used to embed responsive videos and maps, etc
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/aspect-ratio)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Flayout-aspectratio--responsive)
PreviewCode
2 / 1
```
import { As... |
https://www.chakra-ui.com/docs/components/concepts/composition | 1. Concepts
2. Composition
# Composition
Learn how to compose components in Chakra UI.
## [The `as` Prop]()
Used to change the underlying HTML element that a React component renders. It provides a straightforward way to change the underlying element while retaining the component's functionality.
```
<Heading as="h... |
https://www.chakra-ui.com/docs/components/concepts/server-components | 1. Concepts
2. Server Component
# Server Components
Learn how to use Chakra UI with React Server Components.
React Server Components is a new feature in React that allows you to build components that render on the server and return UI to the client without hydration.
Client components are still server-rendered but ... |
https://www.chakra-ui.com/docs/components/center | 1. Layout
2. Center
# Center
Used to center its child within itself.
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/center)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Flayout-center--basic)
PreviewCode
This will be centered
```
import { Box, Center } from "... |
https://www.chakra-ui.com/docs/components/box | 1. Layout
2. Box
# Box
The most abstract styling component in Chakra UI on top of which all other Chakra UI components are built.
PreviewCode
This is the Box
```
import { Box } from "@chakra-ui/react"
const Demo = () => {
return (
<Box background="tomato" width="100%" padding="4" color="white">
This i... |
https://www.chakra-ui.com/docs/components/bleed | 1. Layout
2. Bleed
# Bleed
Used to break an element from the boundaries of its container
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/bleed)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Flayout-bleed--basic)
PreviewCode
Bleed
## Some Heading
Lorem ipsum do... |
https://www.chakra-ui.com/docs/components/flex | 1. Layout
2. Flex
# Flex
Used to manage flex layouts
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/flex)
PreviewCode
```
import { Flex } from "@chakra-ui/react"
import { DecorativeBox } from "compositions/lib/decorative-box"
const Demo = () => {
return (
<Flex gap="... |
https://www.chakra-ui.com/docs/components/container | 1. Layout
2. Container
# Container
Used to constrain a content's width to the current breakpoint, while keeping it fluid.
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/container)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Flayout-container--basic)[Recipe](htt... |
https://www.chakra-ui.com/docs/components/float | 1. Layout
2. Float
# Float
Used to anchor an element to the edge of a container.
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/float)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Fcomponents-float--basic)
PreviewCode
3
```
import { Box, Circle, Float } from ... |
https://www.chakra-ui.com/docs/components/group | 1. Layout
2. Group
# Group
Used to group and attach elements together
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/group)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Fcomponents-group--basic)
PreviewCode
1
2
```
import { Group } from "@chakra-ui/react"
im... |
https://www.chakra-ui.com/docs/components/grid | 1. Layout
2. Grid
# Grid
Used to manage grid layouts
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/grid)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Fcomponents-grid--basic)
PreviewCode
```
import { Grid } from "@chakra-ui/react"
import { DecorativeBox } fro... |
https://www.chakra-ui.com/docs/components/simple-grid | 1. Layout
2. SimpleGrid
# SimpleGrid
SimpleGrid provides a friendly interface to create responsive grid layouts with ease.
PreviewCode
```
import { SimpleGrid } from "@chakra-ui/react"
import { DecorativeBox } from "compositions/lib/decorative-box"
const Demo = () => {
return (
<SimpleGrid columns={2} gap="4... |
https://www.chakra-ui.com/docs/components/stack | 1. Layout
2. Stack
# Stack
Used to layout its children in a vertical or horizontal stack.
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/stack)
PreviewCode
```
import { Stack } from "@chakra-ui/react"
import { DecorativeBox } from "compositions/lib/decorative-box"
const De... |
https://www.chakra-ui.com/docs/components/code | 1. Typography
2. Code
# Code
Used to display inline code
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/code)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Ftypography-code--basic)[Recipe](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/theme/... |
https://www.chakra-ui.com/docs/components/theme | 1. Layout
2. Theme
# Theme
Used to force a part of the tree to light or dark mode.
PreviewCode
Auto Button
Dark Button
Light Button
```
import { Button, Stack, Theme } from "@chakra-ui/react"
const Demo = () => {
return (
<Stack align="flex-start">
<Button variant="surface" colorPalette="teal">
... |
https://www.chakra-ui.com/docs/components/blockquote | 1. Typography
2. Blockquote
# Blockquote
Used to quote text content from an external source
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/blockquote)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Fcomponents-blockquote--basic)[Recipe](https://github.com/chakra-u... |
https://www.chakra-ui.com/docs/components/link | 1. Typography
2. Link
# Link
Used to provide accessible navigation
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/link)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Ftypography-link--basic)[Recipe](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/... |
https://www.chakra-ui.com/docs/components/highlight | 1. Typography
2. Highlight
# Highlight
Used to highlight substrings of a text.
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/highlight)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Ftypography-highlight--basic)[Recipe](https://github.com/chakra-ui/chakra-ui/tre... |
https://www.chakra-ui.com/docs/components/kbd | 1. Typography
2. Kbd
# Kbd
Used to show key combinations for an action
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/kbd)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Fcomponents-kbd--basic)[Recipe](https://github.com/chakra-ui/chakra-ui/tree/main/packages/reac... |
https://www.chakra-ui.com/docs/components/em | 1. Typography
2. Em
# Em
Used to mark text for emphasis.
PreviewCode
The *design system* is a collection of UI elements
```
import { Em, Text } from "@chakra-ui/react"
const Demo = () => {
return (
<Text>
The <Em>design system</Em> is a collection of UI elements
</Text>
)
}
```
## [Usage]()
``... |
https://www.chakra-ui.com/docs/components/list | 1. Typography
2. List
# List
Used to display a list of items
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/list)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Fcomponents-list--basic)[Recipe](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/th... |
https://www.chakra-ui.com/docs/components/mark | 1. Typography
2. Mark
# Mark
Used to mark text for emphasis.
PreviewCode
The design system is a collection of UI elements
```
import { Mark, Text } from "@chakra-ui/react"
const Demo = () => {
return (
<Text>
The <Mark variant="subtle">design system</Mark> is a collection of UI
elements
</Te... |
https://www.chakra-ui.com/docs/components/prose | 1. Typography
2. Prose
# Prose
Used to style remote HTML content
PreviewCode
# Title Heading 1
## Title Heading 2
### Title Heading 3
#### Title Heading 4
#### Title Heading 4 `testing`
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi at dolor nec ex rutrum semper. Praesent ultricies purus eget l... |
https://www.chakra-ui.com/docs/components/heading | 1. Typography
2. Heading
# Heading
Used to render semantic HTML heading elements.
PreviewCode
## The quick brown fox jumps over the lazy dog
```
import { Heading } from "@chakra-ui/react"
const Demo = () => {
return <Heading>The quick brown fox jumps over the lazy dog</Heading>
}
```
## [Usage]()
```
import {... |
https://www.chakra-ui.com/docs/components/link-overlay | 13 days ago
## [Chakra V3 Workshop]()
Catch up on whats been cooking at Chakra UI and explore some of the popular community resources.
[Inner Link]() |
https://www.chakra-ui.com/docs/components/action-bar | 1. Components
2. Action Bar
# Action Bar
Used to display a bottom action bar with a set of actions
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/action-bar)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Fcomponents-action-bar--basic)[Recipe](https://github.com/c... |
https://www.chakra-ui.com/docs/components/text | 1. Typography
2. Text
# Text
Used to render text and paragraphs within an interface.
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/typography)
PreviewCode
Sphinx of black quartz, judge my vow.
```
import { Text } from "@chakra-ui/react"
const Demo = () => {
return <Tex... |
https://www.chakra-ui.com/docs/components/alert | 1. Components
2. Alert
# Alert
Used to communicate a state that affects a system, feature or page.
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/alert)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Fcomponents-alert--basic)[Recipe](https://github.com/chakra-ui/c... |
https://www.chakra-ui.com/docs/components/badge | 1. Components
2. Badge
# Badge
Used to highlight an item's status for quick recognition.
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/badge)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Fcomponents-badge--basic)[Recipe](https://github.com/chakra-ui/chakra-ui/t... |
https://www.chakra-ui.com/docs/components/avatar | 1. Components
2. Avatar
# Avatar
Used to represent user profile picture or initials
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/avatar)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Fcomponents-avatar--basic)[Recipe](https://github.com/chakra-ui/chakra-ui/tree... |
https://www.chakra-ui.com/docs/components/accordion | 1. Components
2. Accordion
# Accordion
Used to show and hide sections of related content on a page
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/accordion)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Fcomponents-accordion--basic)[Recipe](https://github.com/cha... |
https://www.chakra-ui.com/docs/components/breadcrumb | 1. Components
2. Breadcrumb
# Breadcrumb
Used to display a page's location within a site's hierarchical structure
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/breadcrumb)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Fcomponents-breadcrumb--basic)[Recipe](https... |
https://www.chakra-ui.com/docs/components/button | 1. Components
2. Button
# Button
Used to trigger an action or event
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/button)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Fcomponents-button--basic)[Recipe](https://github.com/chakra-ui/chakra-ui/tree/main/packages/r... |
https://www.chakra-ui.com/docs/components/card | 1. Components
2. Card
# Card
Used to display content related to a single subject.
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/card)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Fcomponents-card--basic)[Recipe](https://github.com/chakra-ui/chakra-ui/tree/main/... |
https://www.chakra-ui.com/docs/components/checkbox-card | 1. Components
2. Checkbox Card
# Checkbox Card
Used to select or deselect options displayed within cards.
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/checkbox-card)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Fcomponents-checkbox-card--basic)[Recipe](https:/... |
https://www.chakra-ui.com/docs/components/clipboard | 1. Components
2. Clipboard
# Clipboard
Used to copy text to the clipboard
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/clipboard)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Fcomponents-clipboard--basic)[Recipe](https://github.com/chakra-ui/chakra-ui/tree/mai... |
https://www.chakra-ui.com/docs/components/collapsible | 1. Components
2. Collapsible
# Collapsible
Used to expand and collapse additional content.
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/collapsible)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Fcomponents-collapsible--basic)[Recipe](https://github.com/chakra-... |
https://www.chakra-ui.com/docs/components/checkbox | 1. Components
2. Checkbox
# Checkbox
Used in forms when a user needs to select multiple values from several options
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/checkbox)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Fcomponents-checkbox--basic)[Recipe](https:/... |
https://www.chakra-ui.com/docs/components/close-button | 1. Components
2. Close Button
# Close Button
Used to trigger close functionality
[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Fcomponents-close-button--basic)[Recipe](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/theme/recipes/close-button.ts)
PreviewCode
```
import { CloseButt... |
https://www.chakra-ui.com/docs/components/color-swatch | 1. Components
2. Color Swatch
# Color Swatch
Used to preview a color
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/color-swatch)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Fcomponents-color-swatch--basic)[Recipe](https://github.com/chakra-ui/chakra-ui/tree/ma... |
https://www.chakra-ui.com/docs/components/data-list | 1. Components
2. Data List
# DataList
Used to display a list of similar data items.
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/data-list)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Fcomponents-data-list--basic)[Recipe](https://github.com/chakra-ui/chakra-u... |
https://www.chakra-ui.com/docs/components/editable | 1. Components
2. Editable
# Editable
Used for inline renaming of some text.
[Source](https://github.com/chakra-ui/chakra-ui/tree/main/packages/react/src/components/editable)[Storybook](https://storybook.chakra-ui.com/?path=%2Fstory%2Fcomponents-editable--basic)[Recipe](https://github.com/chakra-ui/chakra-ui/tree/mai... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.