Right now mostly extracted from configuration-manager and SilverBullet+'s dashboard. Will be used in more plugs moving forward.
9 lines
286 B
TypeScript
9 lines
286 B
TypeScript
import type { ComponentChildren } from "preact";
|
|
import { cx } from "./cx.ts";
|
|
|
|
export type BadgeProps = { class?: string; children?: ComponentChildren };
|
|
|
|
export function Badge({ class: extra, children }: BadgeProps) {
|
|
return <span class={cx("sb-badge", extra)}>{children}</span>;
|
|
}
|