We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a016f3 commit d33211fCopy full SHA for d33211f
1 file changed
packages/devtools-ui/src/components/header.tsx
@@ -21,17 +21,19 @@ export function Header({
21
export function HeaderLogo({
22
children,
23
flavor,
24
+ onClick,
25
}: {
26
children: JSX.Element
27
flavor: {
28
light: string
29
dark: string
30
}
31
+ onClick?: JSX.EventHandler<HTMLButtonElement, MouseEvent>
32
}) {
33
const styles = useStyles()
34
return (
35
<div class={styles().header.logoAndToggleContainer}>
- <button class={clsx(styles().header.logo)}>
36
+ <button class={clsx(styles().header.logo)} onClick={onClick}>
37
<span class={clsx(styles().header.tanstackLogo)}>TANSTACK</span>
38
<span
39
class={clsx(styles().header.flavorLogo(flavor.light, flavor.dark))}
0 commit comments