File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
packages/kit-tailwind/src/components/tabs Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 1- import {
2- component$ ,
3- PropFunction ,
4- Slot ,
5- QwikIntrinsicElements ,
6- } from '@builder.io/qwik' ;
1+ import { component$ , Slot , QwikIntrinsicElements } from '@builder.io/qwik' ;
72import { Tab as HeadlessTab } from '@qwik-ui/headless' ;
83
94export 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
1612export 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 } `}
You can’t perform that action at this time.
0 commit comments