11import { component$ } from '@builder.io/qwik' ;
2- import { Tooltip } from '@qwik-ui/headless' ;
32import { Popover , PopoverContent , PopoverTrigger } from '@qwik-ui/headless' ;
4- import { } from '@qwik-ui/headless' ;
5- import { Button } from '@qwik-ui/tailwind' ;
63type APITableProps = {
74 propDescriptors : {
85 name : string ;
@@ -17,22 +14,26 @@ export const APITable = component$(({ propDescriptors }: APITableProps) => {
1714 < div class = "overflow-auto" >
1815 < table class = "w-full min-w-[540px] border-b border-gray-700 text-left sm:min-w-full" >
1916 < tbody class = "divide-y divide-gray-700" >
20- < tr class = "w-1/4 text-white" >
17+ < tr class = "w-1/4 dark: text-white " >
2118 < td class = "w-1/6 whitespace-nowrap py-2 pl-4 text-sm font-medium sm:pl-0" >
2219 Prop
2320 </ 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 >
2623 </ tr >
2724 { propDescriptors ?. map ( ( propDescriptor ) => {
2825 return (
2926 < tr key = { propDescriptor . name } >
3027 < 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 >
3231 </ td >
3332 < td class = "prose prose-sm py-3 align-baseline" >
3433 < 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 >
3637 { propDescriptor . info && (
3738 < Popover placement = "top" >
3839 < PopoverContent >
0 commit comments