'use client' import { forwardRef } from 'react' import * as React from 'react' import classNames from 'classnames' import { colorTokenCssVar, cssUrl, px } from '~/src/utils/style' import { FeatureType, useFeatureFlag } from '~/src/components/FeatureProvider' import { type SmoothCornersBoxProps } from './SmoothCornersBox.types' import styles from './SmoothCornersBox.module.scss' /** * `SmoothCornersBox` is a simple `div` element with smooth corners. * It is available by enabling the `SmoothCornersFeature`. * @example * * ```tsx * * * * ``` */ export const SmoothCornersBox = forwardRef< HTMLDivElement, SmoothCornersBoxProps >(function SmoothCornersBox( { children, style, className, disabled, borderRadius, margin, shadow, backgroundColor, backgroundImage, ...rest }, forwardedRef ) { const shadowBlurRadius = shadow?.blurRadius ?? 0 const shadowSpreadRadius = shadow?.spreadRadius ?? 0 return (
{children}
) })