(props: ParentProps<TabsTriggerProps>)
| 45 | } |
| 46 | |
| 47 | function TabsTrigger(props: ParentProps<TabsTriggerProps>) { |
| 48 | const [split, rest] = splitProps(props, [ |
| 49 | "class", |
| 50 | "classList", |
| 51 | "classes", |
| 52 | "children", |
| 53 | "closeButton", |
| 54 | "hideCloseButton", |
| 55 | ]) |
| 56 | return ( |
| 57 | <div |
| 58 | data-slot="tabs-trigger-wrapper" |
| 59 | classList={{ |
| 60 | ...(split.classList ?? {}), |
| 61 | [split.class ?? ""]: !!split.class, |
| 62 | }} |
| 63 | > |
| 64 | <Kobalte.Trigger |
| 65 | {...rest} |
| 66 | data-slot="tabs-trigger" |
| 67 | classList={{ "group/tab": true, [split.classes?.button ?? ""]: split.classes?.button }} |
| 68 | > |
| 69 | {split.children} |
| 70 | </Kobalte.Trigger> |
| 71 | <Show when={split.closeButton}> |
| 72 | {(closeButton) => ( |
| 73 | <div data-slot="tabs-trigger-close-button" data-hidden={split.hideCloseButton}> |
| 74 | {closeButton()} |
| 75 | </div> |
| 76 | )} |
| 77 | </Show> |
| 78 | </div> |
| 79 | ) |
| 80 | } |
| 81 | |
| 82 | function TabsContent(props: ParentProps<TabsContentProps>) { |
| 83 | const [split, rest] = splitProps(props, ["class", "classList", "children"]) |
nothing calls this directly
no outgoing calls
no test coverage detected