StackPill.tsx
1import type { JSX } from "solid-js";23interface StackPillProps {4 accent?: boolean;5 class?: string;6 children: JSX.Element;7 onClick?: JSX.EventHandlerUnion<HTMLButtonElement, MouseEvent>;8}910export function StackPill(props: StackPillProps) {11 return (12 <button13 class={`stk-pill ${props.accent ? "is-accent" : ""} ${props.class ?? ""}`}14 onClick={props.onClick}15 type="button"16 >17 {props.children}18 </button>19 );20}