monday-ui-react-core
Version:
Official monday.com UI resources for application development in React.js
58 lines (41 loc) • 1.94 kB
text/mdx
import { Canvas, Meta } from "@storybook/blocks";
import { ComponentNameDecorator } from "../../components";
import { Frame } from "vibe-storybook-components";
import { menuExample, tipseenExample, toolbarExample } from "./assets";
import { COLORS, SHADOW, TYPOGRAPHY } from "../../components/related-components/component-description-map";
import { TipApplyingSpacing } from "./spacing.stories.helpers";
import * as SpacingStories from "./spacing.stories.tsx";
import "./spacing.scss";
<Meta of={SpacingStories} />
<ComponentNameDecorator withFoundationBackground>Spacing</ComponentNameDecorator>
- [Overview](
- [Spacing sizes](
- [Usage and examples](
- [Up next](
- [Feedback](
Positioning UI should be with taught including the empty space between components.
This is what creates relationships and hierarchy withing the visual controls.
Using the right sizes will create consistency and hierarchy in user interface.
<Canvas of={SpacingStories.Sizes} sourceState="none" />
<TipApplyingSpacing />
<UsageGuidelines
guidelines={[
"You can double the sizes to create bigger spacings",
"Stay consistent with paddings and sizes across different UI components",
"Align all the elements to the same spacing within the components or a page"
]}
/>
<Frame className="monday-storybook-spacing_image-container">
<img className="monday-storybook-spacing_image--menu" src={menuExample} alt="" />
</Frame>
<Frame className="monday-storybook-spacing_image-container">
<img className="monday-storybook-spacing_image--toolbar" src={toolbarExample} alt="" />
</Frame>
<Frame className="monday-storybook-spacing_image-container ">
<img className="monday-storybook-spacing_image--tipseen" src={tipseenExample} alt="" />
</Frame>
<RelatedComponents componentsNames={[TYPOGRAPHY, SHADOW, COLORS]} />