FaasJS
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security

Documents / @faasjs/ant-design / ConfigProvider

Function: ConfigProvider()

ConfigProvider(props): Element | null

Provide theme overrides and optional FaasJS client initialization for descendants.

Theme overrides are merged with the built-in defaults. When theme.lang is omitted, the provider infers a default language from navigator.language. This is the low-level FaasJS config boundary; the higher-level App component wraps it together with Ant Design feedback APIs, an error boundary, and modal/drawer state.

Parameters

props

ConfigProviderProps

Theme overrides and optional FaasJS client configuration.

Returns

Element | null

Example

import { Blank, ConfigProvider } from '@faasjs/ant-design'

function OrdersEmptyState() {
  return <Blank />
}

export function OrdersPage() {
  return (
    <ConfigProvider
      theme={{
        common: { blank: 'No orders yet' },
        Title: { suffix: 'Acme Admin' },
      }}
    >
      <OrdersEmptyState />
    </ConfigProvider>
  )
}