|
1 | 1 | <script context="module" lang="ts"> |
2 | 2 | import { writable, type Writable } from 'svelte/store'; |
3 | 3 |
|
4 | | - // // export interface TabCtxType { |
5 | | - // // activeClasses: string | undefined | null; |
6 | | - // // inactiveClasses: string | undefined | null; |
7 | | - // // selected: Writable<HTMLElement>; |
8 | | - // // } |
| 4 | + export interface TabCtxType { |
| 5 | + activeClasses: string | undefined | null; |
| 6 | + inactiveClasses: string | undefined | null; |
| 7 | + selected: Writable<HTMLElement>; |
| 8 | + } |
9 | 9 | </script> |
10 | 10 |
|
11 | 11 | <script lang="ts"> |
12 | 12 | import type { Snippet } from 'svelte'; |
13 | 13 | import { twMerge } from 'tailwind-merge'; |
14 | 14 | import { setContext } from 'svelte'; |
15 | 15 | import type { HTMLAttributes } from 'svelte/elements'; |
16 | | - import { type TabsProps as Props, type TabCtxType } from '.' |
17 | 16 |
|
18 | | - // interface Props extends HTMLAttributes<HTMLUListElement> { |
19 | | - // children: Snippet; |
20 | | - // style?: 'full' | 'pill' | 'underline' | 'none'; |
21 | | - // defaultClass?: string | undefined | null; |
22 | | - // contentClass?: string | undefined | null; |
23 | | - // divider?: boolean; |
24 | | - // activeClasses?: string | undefined | null; |
25 | | - // inactiveClasses?: string | undefined | null; |
26 | | - // class?: string | undefined | null; |
27 | | - // } |
| 17 | + interface Props extends HTMLAttributes<HTMLUListElement> { |
| 18 | + children: Snippet; |
| 19 | + style?: 'full' | 'pill' | 'underline' | 'none'; |
| 20 | + defaultClass?: string | undefined | null; |
| 21 | + contentClass?: string | undefined | null; |
| 22 | + divider?: boolean; |
| 23 | + activeClasses?: string | undefined | null; |
| 24 | + inactiveClasses?: string | undefined | null; |
| 25 | + class?: string | undefined | null; |
| 26 | + } |
28 | 27 | let { |
29 | 28 | children, |
30 | 29 | style = 'none', |
|
0 commit comments