AppTopBar: support app bar props

This commit is contained in:
thislight 2024-12-01 23:27:49 +08:00
parent 12718930db
commit 5d1cf347a4
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E

View file

@ -2,11 +2,12 @@ import { AppBar, Toolbar } from "@suid/material";
import { splitProps, type JSX, type ParentComponent } from "solid-js";
import "./AppTopBar.css";
import { useWindowSize } from "@solid-primitives/resize-observer";
import type { AppBarProps } from "@suid/material/AppBar";
const AppTopBar: ParentComponent<{
class?: string;
style?: JSX.HTMLAttributes<HTMLElement>["style"];
}> = (oprops) => {
} & AppBarProps> = (oprops) => {
const [props, rest] = splitProps(oprops, ["children", "class"]);
const windowSize = useWindowSize();