Function
RailTabButton
({ active, onClick, icon, label })
Source from the content-addressed store, hash-verified
| 113 | "flex shrink-0 items-center gap-2 px-4 py-2 text-xs font-medium transition-all rounded-t-md border-t border-x -mb-px whitespace-nowrap outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/60", |
| 114 | active |
| 115 | ? "bg-background border-border text-foreground z-10" |
| 116 | : "bg-transparent border-transparent text-muted-foreground hover:text-foreground hover:bg-foreground/[0.05]" |
| 117 | )} |
| 118 | > |
| 119 | {icon} |
| 120 | <span>{label}</span> |
| 121 | </button> |
| 122 | ) |
| 123 | |
| 124 | const RailTabButton: React.FC<{ |
| 125 | active: boolean |
| 126 | onClick: () => void |
| 127 | icon: React.ReactNode |
| 128 | label: string |
| 129 | }> = ({ active, onClick, icon, label }) => ( |
| 130 | <button |
| 131 | type="button" |
| 132 | onClick={onClick} |
| 133 | title={label} |
| 134 | aria-label={label} |
Callers
nothing calls this directly
Tested by
no test coverage detected