UNPKG

@coinmeca/ui

Version:

This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

14 lines 613 B
"use client"; import { memo } from "react"; import Style from "./SlideContent.styled"; function SlideContent(props) { const active = props?.active || false; const vertical = props?.vertical || false; const offset = typeof props?.offset === "number" ? props?.offset : 15; const unit = typeof props?.unit === "string" ? props?.unit : "%"; return (<Style {...props?.swipe} $vertical={vertical} $offset={offset} $unit={unit} style={props?.style} data-active={active}> {props?.children} </Style>); } export default memo(SlideContent); //# sourceMappingURL=SlideContent.jsx.map