13 lines
258 B
TypeScript
13 lines
258 B
TypeScript
|
import { JSX } from "preact";
|
||
|
|
||
|
export default function Center(props: JSX.HTMLAttributes<HTMLDivElement>) {
|
||
|
return (
|
||
|
<div
|
||
|
{...props}
|
||
|
class={`flex items-center justify-center h-full w-full ${
|
||
|
props.class ?? ""
|
||
|
}`}
|
||
|
/>
|
||
|
);
|
||
|
}
|