Tldraw/packages/editor/src/lib/components/SVGContainer.tsx

15 wiersze
363 B
TypeScript

import classNames from 'classnames'
import * as React from 'react'
/** @public */
export type SVGContainerProps = React.HTMLAttributes<SVGElement>
/** @public */
export function SVGContainer({ children, className = '', ...rest }: SVGContainerProps) {
return (
<svg {...rest} className={classNames('tl-svg-container', className)}>
{children}
</svg>
)
}