app: Initial tabs impl (#28436)

This commit is contained in:
Brendan Allan
2026-05-20 14:40:06 +08:00
committed by GitHub
parent 4702cddb3e
commit 38b406fb35
86 changed files with 10786 additions and 604 deletions
+29
View File
@@ -0,0 +1,29 @@
import { type ComponentProps, splitProps } from "solid-js"
export interface IconProps extends ComponentProps<"svg"> {
name: string
size?: "small" | "normal" | "large"
}
/**
* Placeholder icon component
*/
export function Icon(props: IconProps) {
const [split, rest] = splitProps(props, ["name", "size"])
const pixelSize = split.size === "small" ? 14 : split.size === "large" ? 20 : 16
return (
<svg
{...rest}
data-slot="icon-svg"
width={pixelSize}
height={pixelSize}
viewBox="0 0 16 16"
fill="none"
xmlns="http://www.w3.org/2000/svg"
aria-hidden={rest["aria-hidden"] ?? "true"}
>
<path d="M8 2.88867V13.1109" stroke="currentColor" stroke-linejoin="round" />
<path d="M2.88867 8H13.1109" stroke="currentColor" stroke-linejoin="round" />
</svg>
)
}