kopia lustrzana https://github.com/Tldraw/Tldraw
15 wiersze
363 B
TypeScript
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>
|
|
)
|
|
}
|