Buckets:
| import React, { forwardRef, Ref } from "react"; | |
| import classes from "./index.module.scss"; | |
| type Props = { | |
| left?: boolean; | |
| right?: boolean; | |
| className?: string; | |
| children: React.ReactNode; | |
| ref?: Ref<HTMLDivElement>; | |
| }; | |
| export const Gutter: React.FC<Props> = forwardRef<HTMLDivElement, Props>( | |
| (props, ref) => { | |
| const { left = true, right = true, className, children } = props; | |
| return ( | |
| <div | |
| ref={ref} | |
| className={[ | |
| left && classes.gutterLeft, | |
| right && classes.gutterRight, | |
| className, | |
| ] | |
| .filter(Boolean) | |
| .join(" ")} | |
| > | |
| {children} | |
| </div> | |
| ); | |
| }, | |
| ); | |
| Gutter.displayName = "Gutter"; | |
Xet Storage Details
- Size:
- 701 Bytes
- Xet hash:
- 6c6873b356167744ea52edf88271819f7c1f55bab19d357259644be2de14e9aa
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.