MCPcopy Create free account
hub / github.com/47ng/nuqs / QuerystringSkeleton

Function QuerystringSkeleton

packages/docs/src/components/querystring.tsx:46–64  ·  view source on GitHub ↗
({
  children,
  className,
  ...props
}: React.ComponentProps<'pre'>)

Source from the content-addressed store, hash-verified

44}
45
46export function QuerystringSkeleton({
47 children,
48 className,
49 ...props
50}: React.ComponentProps<'pre'>) {
51 return (
52 <pre
53 aria-label="Querystring spy"
54 aria-description="For browsers where the query is hard to see (eg: on mobile)"
55 className={cn(
56 'bg-background block w-full overflow-x-auto rounded-lg border px-3 py-2 text-xs text-wrap sm:text-sm dark:bg-zinc-900/50 dark:shadow-inner',
57 className
58 )}
59 {...props}
60 >
61 {children}
62 </pre>
63 )
64}
65
66function filterQueryKeys(query: string | URLSearchParams, keys?: string[]) {
67 const source = new URLSearchParams(query)

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected