monday-ui-react-core
Version:
Official monday.com UI resources for application development in React.js
54 lines (36 loc) • 1.69 kB
text/mdx
import { Meta } from "@storybook/blocks";
import { ComponentNameDecorator } from "../../components";
import { ShadowLevels } from "./shadow-levels/shadow-levels";
import { shadowsSketch } from "./assets";
import { CardShadowExample } from "./card-shadow-example/card-shadow-example";
import { DragShadowExample } from "./drag-shadow-example/drag-shadow-example";
import { COLORS, SPACING, TYPOGRAPHY } from "../../components/related-components/component-description-map";
import "./shadow.scss";
<Meta title="Foundations/Shadow" />
<ComponentNameDecorator withFoundationBackground>Shadow</ComponentNameDecorator>
- [Overview](
- [Shadow levels](
- [Usage and examples](
- [Up next](
- [Feedback](
Virtual light in monday platform always comes from the top and creates a shadows from layout and UI elements like in real world.
Shadows used to create the scenes of hierarchy and elevation withing the UI and layout.
<img src={shadowsSketch} className="monday-storybook-shadow_overview-image" alt="" />
<ShadowLevels />
<UsageGuidelines
guidelines={[
"Shadows express the level of elevation between surfaces, they must be used consistently throughout your product.",
"Use shadow to expain interactions.",
"Items with the same shadow cannot occupy the same space."
]}
/>
Use shadow to indicate the dragged elements are in the “air”
<DragShadowExample />
Use shadow to indicate the card hover is gets closer to the user
<CardShadowExample />
<RelatedComponents componentsNames={[TYPOGRAPHY, SPACING, COLORS]} />