Files
diplomarbeitsportal/src/blocks/Form/Width/index.tsx
2025-03-25 10:53:07 +01:00

14 lines
312 B
TypeScript

import * as React from 'react'
export const Width: React.FC<{
children: React.ReactNode
className?: string
width?: number | string
}> = ({ children, className, width }) => {
return (
<div className={className} style={{ maxWidth: width ? `${width}%` : undefined }}>
{children}
</div>
)
}