blob: 665ee006ab7a3c0648608adfc5342bb820f86055 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import React, { FC } from "react"
import styles from './index.module.scss';
import clsx from 'clsx';
export type Props = {
size?: "sm" | "md" | "lg";
className?: string;
};
const Viewport : FC<Props> = ({children, className, size}) => {
const _size : string = size || "md";
const sizeClass : string = styles['viewport-' + _size];
return (
<div
className={clsx(sizeClass, className)}
>
{children}
</div>
)
};
export default Viewport;
|