Display loading states in your Preswald application
The Spinner widget provides a visual loading indicator for your Preswald application. It’s useful for indicating that content is being loaded or that an operation is in progress.
Property | Type | Required | Default | Description |
---|---|---|---|---|
label | string | No | ’Loading…’ | Text displayed below the spinner |
variant | string | No | ’default’ | Visual style variant (‘default’ or ‘card’) |
className | string | No | ” | Additional CSS classes to apply to the spinner |
showLabel | boolean | No | true | Whether to show the loading text label |
The card variant wraps the spinner in a card container for better visual hierarchy.
Display loading states in your Preswald application
The Spinner widget provides a visual loading indicator for your Preswald application. It’s useful for indicating that content is being loaded or that an operation is in progress.
Property | Type | Required | Default | Description |
---|---|---|---|---|
label | string | No | ’Loading…’ | Text displayed below the spinner |
variant | string | No | ’default’ | Visual style variant (‘default’ or ‘card’) |
className | string | No | ” | Additional CSS classes to apply to the spinner |
showLabel | boolean | No | true | Whether to show the loading text label |
The card variant wraps the spinner in a card container for better visual hierarchy.