Elevation All Elevations
src / Demo.tsx
123456789101112131415161718192021import React, { ReactElement } from "react";
import cn from "classnames";
import styles from "./AllElevations.module.scss";
export default function Demo(): ReactElement {
return (
<ul className={styles.container}>
{Array.from({ length: 25 }).map((_, elevation) => (
<li
key={elevation}
className={cn(styles.example, styles[`elevation${elevation}`])}
>
<code className={styles.code}>
{`@include rmd-elevation(${elevation})`}
</code>
</li>
))}
</ul>
);
}