bigbuffet-rw/app/soapbox/components/outline-box.tsx
Alex Gleason 2eb08aced9
Create OutlineBox component
Visual container for QuotedStatus and Accounts in some scenarios
2022-09-16 12:24:33 -05:00

18 lines
No EOL
457 B
TypeScript

import classNames from 'clsx';
import React from 'react';
interface IOutlineBox {
children: React.ReactNode,
className?: string,
}
/** Wraps children in a container with an outline. */
const OutlineBox: React.FC<IOutlineBox> = ({ children, className }) => {
return (
<div className={classNames('p-4 rounded-lg border border-solid border-gray-300 dark:border-gray-800', className)}>
{children}
</div>
);
};
export default OutlineBox;