Skip to main content
The LoadingState API is experimental and may change in the future. It has been marked as @deprecated to remind the developer that it is experimental. It is not "deprecated", just experimental. Please don't use it in production versions of your app. We do not guarantee backward compatibility, or that the API will remain stable.
import {Experimental_LoadingState} from "attio/client"
When used inside a dialog, this component will fill the entire Dialog, hiding any other UI. LoadingState can be very useful as a fallback for React.Suspense.
Dialogs are already suspenseful!If any React code in your dialog suspends, a loading state will be shown automatically.This component is only for when you need to control the message shown during loading.

Props

children
string
An optional message to display next to the spinner. e.g. "Loading contacts...".Defaults to "Loading...".