Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/frontend/packages/swarm-ui/src/ui/toolbar/Toolbar.tsx

16 lines
530 B
TypeScript

// <Toolbar> — the bar above a list or a card: filters, a count, the refresh
// picker. Items sit on one line and wrap when narrow, aligned to the end
// (where the refresh picker sits on every page that has one).
import type { ComponentChildren } from "preact";
import "./Toolbar.css";
export function Toolbar({
class: extraClass,
children,
}: {
class?: string;
children: ComponentChildren;
}) {
const classes = ["ui-toolbar", extraClass].filter(Boolean).join(" ");
return <div class={classes}>{children}</div>;
}