Skip to content

Commit a70b6e8

Browse files
fix(docs site build): docs site should build correctly now
1 parent f9c01b3 commit a70b6e8

File tree

1 file changed

+5
-9
lines changed
  • packages/kit-tailwind/src/components/tabs

1 file changed

+5
-9
lines changed

packages/kit-tailwind/src/components/tabs/tab.tsx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
1-
import {
2-
component$,
3-
PropFunction,
4-
Slot,
5-
QwikIntrinsicElements,
6-
} from '@builder.io/qwik';
1+
import { component$, Slot, QwikIntrinsicElements } from '@builder.io/qwik';
72
import { Tab as HeadlessTab } from '@qwik-ui/headless';
83

94
export type TabProps = {
105
class?: string;
116
isLifted?: boolean;
127
isBordered?: boolean;
13-
onClick$?: PropFunction<(clicked: number) => void>;
8+
// commented out if need to refactor. failing build due to this.
9+
// onClick$?: PropFunction<(clicked: number) => void>;
1410
} & QwikIntrinsicElements['button'];
1511

1612
export const Tab = component$(
17-
({ isBordered, isLifted, onClick$, ...props }: TabProps) => {
13+
({ isBordered, isLifted, ...props }: TabProps) => {
1814
return (
1915
<HeadlessTab
20-
onClick$={() => onClick$}
16+
onClick$={props.onClick$}
2117
class={`tab ${isBordered ? 'tab-bordered' : ''} ${
2218
isLifted ? 'tab-lifted' : ''
2319
}`}

0 commit comments

Comments
 (0)