UI primitives
Shared @trails-cool/ui components on
the design-system tokens.
{colorMode}
Topbar · configurations
Subtle card
On a subtle surface tone.
Raised card
Elevated with a soft shadow.
import { useState, type ReactNode } from "react"; import { Avatar, Badge, Button, Card, IconButton, Input, SegmentedControl, } from "@trails-cool/ui"; import { Topbar } from "~/components/Topbar"; import type { Participant } from "~/lib/use-participants"; const SOLO: Participant[] = [ { clientId: 1, name: "ulle", color: "#4A6B40", isHost: true, isLocal: true }, ]; const PARTY: Participant[] = [ { clientId: 1, name: "ulle", color: "#4A6B40", isHost: true, isLocal: true }, { clientId: 2, name: "Mara", color: "#8B6D3A", isHost: false, isLocal: false }, { clientId: 3, name: "Sam", color: "#C46040", isHost: false, isLocal: false }, ]; const noop = () => {}; const profilePlaceholder = ( ); const actionsPlaceholder = ( ); function TopbarConfig({ caption, children }: { caption: string; children: ReactNode }) { return (
{caption}
Shared @trails-cool/ui components on
the design-system tokens.
{colorMode}
On a subtle surface tone.
Elevated with a soft shadow.