diff --git a/pages/docs/components/data-display/code.mdx b/pages/docs/components/data-display/code.mdx index 388b737a73..7e31ccbbcb 100644 --- a/pages/docs/components/data-display/code.mdx +++ b/pages/docs/components/data-display/code.mdx @@ -8,8 +8,8 @@ description: --- `Code` is a component used to display inline code. It is composed from the -[Box](/docs/components/layout/box) component with a font family of `mono` for displaying -code. +[Box](/docs/components/layout/box) component with a font family of `mono` for +displaying code. - - - - +// TableContainer is used as a wrapper to prevent overflow in mobile screens + + + + + + + ``` ## Props diff --git a/pages/docs/components/feedback/toast.mdx b/pages/docs/components/feedback/toast.mdx index 77cebd4b1d..e60b70c994 100644 --- a/pages/docs/components/feedback/toast.mdx +++ b/pages/docs/components/feedback/toast.mdx @@ -240,17 +240,20 @@ function Example() { // Or via trigger // Style here will overwrite the entire style above return ( - + // TableContainer is used as a wrapper to prevent overflow in mobile screens + + + ) } ``` diff --git a/pages/docs/components/form/form-control.mdx b/pages/docs/components/form/form-control.mdx index 6c6c44eff4..401985151d 100644 --- a/pages/docs/components/form/form-control.mdx +++ b/pages/docs/components/form/form-control.mdx @@ -54,18 +54,21 @@ import { ### Sample usage for a radio or checkbox group ```jsx - - Favorite Naruto Character - - - Sasuke - Nagato - Itachi - Sage of the six Paths - - - Select only if you're a fan. - +// TableContainer is used as a wrapper to prevent overflow in mobile screens + + + Favorite Naruto Character + + + Sasuke + Nagato + Itachi + Sage of the six Paths + + + Select only if you're a fan. + + ``` ### Error message diff --git a/pages/docs/components/form/number-input.mdx b/pages/docs/components/form/number-input.mdx index c5bbf23d62..3a5b8d36ac 100644 --- a/pages/docs/components/form/number-input.mdx +++ b/pages/docs/components/form/number-input.mdx @@ -183,39 +183,42 @@ Like the `Input` component, you can pass the `size` prop to change the size of the input. ```jsx - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +// TableContainer is used as a wrapper to prevent overflow in mobile screens + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ``` ### Changing the styles diff --git a/pages/docs/components/layout/flex.mdx b/pages/docs/components/layout/flex.mdx index 419a99b059..ef444c1cb9 100644 --- a/pages/docs/components/layout/flex.mdx +++ b/pages/docs/components/layout/flex.mdx @@ -85,7 +85,8 @@ different widths differently. container and also have equal spacing between them. ```jsx - +// TableContainer is used as a wrapper to prevent overflow in mobile screens + Flex and Spacer: Full width, equal Spacing @@ -112,7 +113,7 @@ different widths differently. - + ``` A good use case for `Spacer` is to create a navbar with a signup/login button diff --git a/pages/docs/components/media-and-icons/image.mdx b/pages/docs/components/media-and-icons/image.mdx index 48542fbfb5..a81944abe0 100644 --- a/pages/docs/components/media-and-icons/image.mdx +++ b/pages/docs/components/media-and-icons/image.mdx @@ -27,9 +27,12 @@ import { Image } from '@chakra-ui/react' ## Usage ```jsx - - Dan Abramov - +// TableContainer is used as a wrapper to prevent overflow in mobile screens + + + Dan Abramov + + ``` ## Size @@ -37,21 +40,24 @@ import { Image } from '@chakra-ui/react' The size of the image can be adjusted using the `boxSize` prop. ```jsx - - Dan Abramov - Dan Abramov - Dan Abramov - +// TableContainer is used as a wrapper to prevent overflow in mobile screens + + + Dan Abramov + Dan Abramov + Dan Abramov + + ``` ## Image with border radius diff --git a/pages/docs/components/overlay/tooltip.mdx b/pages/docs/components/overlay/tooltip.mdx index 085070bf1b..43ce38bc45 100644 --- a/pages/docs/components/overlay/tooltip.mdx +++ b/pages/docs/components/overlay/tooltip.mdx @@ -112,9 +112,9 @@ By default the `Tooltip` is not shown when it is around a disabled `Button`. ``` -To show the `Tooltip` on a disabled `Button` you need to provide the -`shouldWrapChildren` prop. This means that the `Button` is surrounded by a span -on which the `Tooltip` is pinned. You could simply add a margin to the `Tooltip` +To show the `Tooltip` on a disabled `Button` you need to provide the +`shouldWrapChildren` prop. This means that the `Button` is surrounded by a span +on which the `Tooltip` is pinned. You could simply add a margin to the `Tooltip` to have it more or less 'pinned' on the `Button` again. ```jsx @@ -123,107 +123,110 @@ to have it more or less 'pinned' on the `Button` again. ``` -> There's a case where the `borderRadius` of a button breaks when the button -> is in a `ButtonGroup` that has the `isAttached` prop set, and the tooltip -> has the `shouldWrapChildren` prop set. -> A workaround could be to pass the specific `borderRadius` depending on the -> `isDisabled` prop of the `Button`. +> There's a case where the `borderRadius` of a button breaks when the button is +> in a `ButtonGroup` that has the `isAttached` prop set, and the tooltip has the +> `shouldWrapChildren` prop set. A workaround could be to pass the specific +> `borderRadius` depending on the `isDisabled` prop of the `Button`. ```jsx - - + + - + - - + + ``` - ## Placement Using the `placement` prop you can adjust where your tooltip will be displayed. ```jsx - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +// TableContainer is used as a wrapper to prevent overflow in mobile screens + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ``` ## More examples