({
name,
children,
type,
}: {
name: string
children: React.ReactNode
type?: string
})
| 98 | } |
| 99 | |
| 100 | export function Property({ |
| 101 | name, |
| 102 | children, |
| 103 | type, |
| 104 | }: { |
| 105 | name: string |
| 106 | children: React.ReactNode |
| 107 | type?: string |
| 108 | }) { |
| 109 | return ( |
| 110 | <li className="m-0 px-0 py-4 first:pt-0 last:pb-0"> |
| 111 | <dl className="m-0 flex flex-wrap items-center gap-x-3 gap-y-2"> |
| 112 | <dt className="sr-only">Name</dt> |
| 113 | <dd> |
| 114 | <code>{name}</code> |
| 115 | </dd> |
| 116 | {type && ( |
| 117 | <> |
| 118 | <dt className="sr-only">Type</dt> |
| 119 | <dd className="font-mono text-xs text-zinc-400 dark:text-zinc-500"> |
| 120 | {type} |
| 121 | </dd> |
| 122 | </> |
| 123 | )} |
| 124 | <dt className="sr-only">Description</dt> |
| 125 | <dd className="w-full flex-none [&>:first-child]:mt-0 [&>:last-child]:mb-0"> |
| 126 | {children} |
| 127 | </dd> |
| 128 | </dl> |
| 129 | </li> |
| 130 | ) |
| 131 | } |
| 132 | |
| 133 | export function Preview({ children }: { children: React.ReactNode }) { |
| 134 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected