apple2js/js/components/Inset.tsx
Will Scullin 466a7eed78
Cheap and cheerful debugger (#135)
* Cheap and cheerful debugger

* Try to manage focus
2022-06-19 19:42:34 -07:00

20 lines
489 B
TypeScript

import { h, ComponentChildren, JSX } from 'preact';
import cs from 'classnames';
import styles from './css/Inset.module.css';
interface InsetProps extends JSX.HTMLAttributes<HTMLDivElement> {
children: ComponentChildren;
}
/**
* Convenience component for a nice beveled border.
*
* @returns Inset component
*/
export const Inset = ({ children, className, ...props }: InsetProps) => (
<div className={cs(className, styles.inset)} {...props}>
{children}
</div>
);