Standards Docs

SchemaClientProvider

Provider for schema client Includes its own QueryClientProvider for SSR compatibility Also includes CreateModalProvider for relation creation modals

Provider for schema client Includes its own QueryClientProvider for SSR compatibility Also includes CreateModalProvider for relation creation modals

Signature

({ config, queryClient: externalQueryClient, children, renderIcon, ModalStack, renderModalContent, placeholder, translations, renderFileViewer, }: SchemaClientProviderProps): Element

Examples

```tsx
import { SchemaClientProvider } from "@stndrds/react";

function App() {
  return (
    <SchemaClientProvider
      config={{
        baseUrl: "https://api.example.com",
        tenantId: "tenant-123",
      }}
      renderIcon={(name) => <Icon name={name} />}
    >
      <YourApp />
    </SchemaClientProvider>
  );
}

On this page