1
1
import { component$ } from '@builder.io/qwik' ;
2
- import { Tooltip } from '@qwik-ui/headless' ;
3
2
import { Popover , PopoverContent , PopoverTrigger } from '@qwik-ui/headless' ;
4
- import { } from '@qwik-ui/headless' ;
5
- import { Button } from '@qwik-ui/tailwind' ;
6
3
type APITableProps = {
7
4
propDescriptors : {
8
5
name : string ;
@@ -17,22 +14,26 @@ export const APITable = component$(({ propDescriptors }: APITableProps) => {
17
14
< div class = "overflow-auto" >
18
15
< table class = "w-full min-w-[540px] border-b border-gray-700 text-left sm:min-w-full" >
19
16
< tbody class = "divide-y divide-gray-700" >
20
- < tr class = "w-1/4 text-white" >
17
+ < tr class = "w-1/4 dark: text-white " >
21
18
< td class = "w-1/6 whitespace-nowrap py-2 pl-4 text-sm font-medium sm:pl-0" >
22
19
Prop
23
20
</ td >
24
- < td class = "w-1/6 whitespace-nowrap py-2 text-sm font-medium" > Type</ td >
25
- < td class = "w-2/3 whitespace-nowrap py-2 text-sm font-medium" > Description</ td >
21
+ < td class = "w-1/6 whitespace-nowrap py-2 text-sm font-medium " > Type</ td >
22
+ < td class = "w-2/3 whitespace-nowrap py-2 text-sm font-medium " > Description</ td >
26
23
</ tr >
27
24
{ propDescriptors ?. map ( ( propDescriptor ) => {
28
25
return (
29
26
< tr key = { propDescriptor . name } >
30
27
< td class = "prose prose-sm py-3 pl-4 align-baseline sm:pl-0 " >
31
- < code > { propDescriptor . name } </ code >
28
+ < code class = "bg-indigo-200 dark:bg-indigo-900 rounded-md mr-6" >
29
+ { propDescriptor . name }
30
+ </ code >
32
31
</ td >
33
32
< td class = "prose prose-sm py-3 align-baseline" >
34
33
< span class = "flex items-center" >
35
- < code > { propDescriptor . type } </ code >
34
+ < code class = "bg-gray-300 dark:bg-gray-700" >
35
+ { propDescriptor . type }
36
+ </ code >
36
37
{ propDescriptor . info && (
37
38
< Popover placement = "top" >
38
39
< PopoverContent >
0 commit comments