2022-05-29 20:48:51 +00:00
|
|
|
import { h, ComponentChildren } from 'preact';
|
2022-05-10 13:52:06 +00:00
|
|
|
|
2022-06-03 22:30:39 +00:00
|
|
|
import styles from './css/Inset.module.css';
|
|
|
|
|
2022-05-10 13:52:06 +00:00
|
|
|
/**
|
|
|
|
* Convenience component for a nice beveled border.
|
|
|
|
*
|
|
|
|
* @returns Inset component
|
|
|
|
*/
|
2022-05-29 20:48:51 +00:00
|
|
|
export const Inset = ({ children }: { children: ComponentChildren }) => (
|
2022-06-03 22:30:39 +00:00
|
|
|
<div className={styles.inset}>
|
2022-05-10 13:52:06 +00:00
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
);
|