packages/grafana-ui/src/components/Layout/Space.mdx
import { Meta, ArgTypes } from '@storybook/blocks'; import { Space } from './Space';
<Meta title="MDX|Space" component={Space} />The Space component is a component used to add space between elements. Horizontal space is added using the h prop, while vertical space is added using the v prop. When adding horizontal space between inline or inline-block elements, the layout prop should be set to inline, otherwise the block value of the prop can be used.
Use the Space component to add space between elements that cannot be spaced using flex or grid layout.
Do not use the Space component to add space between elements inside the Stack component. Instead, use the gap prop on the Stack component.