import { ProgressBar, CircularProgress } from '@cerberus/react'
To customize the ProgressBar we recommend extending the slot recipe provided by the @cerberus-design/panda-preset
package.
export interface ProgressBarBaseProps extends HTMLAttributes<HTMLDivElement> {
usage?: 'block' | 'rounded'
type IndeterminateProgressBarProps = Omit<ProgressBarProps, 'now'> & {
type ProgressBarProps = ProgressBarBaseProps & IndeterminateProgressBarProps
define function ProgressBar(props: ProgressBarProps): ReactNode
Name | Default | Description |
---|
id | | The id of the CircularProgress. |
label | | A description of what the progress bar is for. |
size | md | The size of the progress bar. |
usage | rounded | The style of the progress bar. |
now | | The current progress value. |
indeterminate | false | If the progress bar is in an indeterminate state. |
export interface CircularProgressProps extends SVGProps<SVGSVGElement> {
bgStyle?: 'filled' | 'transparent'
define function CircularProgress(props: CircularProgressProps): ReactNode
Name | Default | Description |
---|
id | | The id of the CircularProgress. |
label | `` | A description of what the progress bar is for. |
now | | The current progress value. |
title | | The title of the CircularProgress for a11y. |
syntax | Done | What is shown below the now value. |
bgStyle | filled | The fill style of the center circle used for the bg. |
import { ProgressBar, CircularProgress } from '@cerberus/react'
To customize the ProgressBar we recommend extending the slot recipe provided by the @cerberus-design/panda-preset
package.
export interface ProgressBarBaseProps extends HTMLAttributes<HTMLDivElement> {
usage?: 'block' | 'rounded'
type IndeterminateProgressBarProps = Omit<ProgressBarProps, 'now'> & {
type ProgressBarProps = ProgressBarBaseProps & IndeterminateProgressBarProps
define function ProgressBar(props: ProgressBarProps): ReactNode
Name | Default | Description |
---|
id | | The id of the CircularProgress. |
label | | A description of what the progress bar is for. |
size | md | The size of the progress bar. |
usage | rounded | The style of the progress bar. |
now | | The current progress value. |
indeterminate | false | If the progress bar is in an indeterminate state. |
export interface CircularProgressProps extends SVGProps<SVGSVGElement> {
bgStyle?: 'filled' | 'transparent'
define function CircularProgress(props: CircularProgressProps): ReactNode
Name | Default | Description |
---|
id | | The id of the CircularProgress. |
label | `` | A description of what the progress bar is for. |
now | | The current progress value. |
title | | The title of the CircularProgress for a11y. |
syntax | Done | What is shown below the now value. |
bgStyle | filled | The fill style of the center circle used for the bg. |
import { ProgressBar, CircularProgress } from '@cerberus/react'
To customize the ProgressBar we recommend extending the slot recipe provided by the @cerberus-design/panda-preset
package.
export interface ProgressBarBaseProps extends HTMLAttributes<HTMLDivElement> {
usage?: 'block' | 'rounded'
type IndeterminateProgressBarProps = Omit<ProgressBarProps, 'now'> & {
type ProgressBarProps = ProgressBarBaseProps & IndeterminateProgressBarProps
define function ProgressBar(props: ProgressBarProps): ReactNode
Name | Default | Description |
---|
id | | The id of the CircularProgress. |
label | | A description of what the progress bar is for. |
size | md | The size of the progress bar. |
usage | rounded | The style of the progress bar. |
now | | The current progress value. |
indeterminate | false | If the progress bar is in an indeterminate state. |
export interface CircularProgressProps extends SVGProps<SVGSVGElement> {
bgStyle?: 'filled' | 'transparent'
define function CircularProgress(props: CircularProgressProps): ReactNode
Name | Default | Description |
---|
id | | The id of the CircularProgress. |
label | `` | A description of what the progress bar is for. |
now | | The current progress value. |
title | | The title of the CircularProgress for a11y. |
syntax | Done | What is shown below the now value. |
bgStyle | filled | The fill style of the center circle used for the bg. |
import { ProgressBar, CircularProgress } from '@cerberus/react'
To customize the ProgressBar we recommend extending the slot recipe provided by the @cerberus-design/panda-preset
package.
export interface ProgressBarBaseProps extends HTMLAttributes<HTMLDivElement> {
usage?: 'block' | 'rounded'
type IndeterminateProgressBarProps = Omit<ProgressBarProps, 'now'> & {
type ProgressBarProps = ProgressBarBaseProps & IndeterminateProgressBarProps
define function ProgressBar(props: ProgressBarProps): ReactNode
Name | Default | Description |
---|
id | | The id of the CircularProgress. |
label | | A description of what the progress bar is for. |
size | md | The size of the progress bar. |
usage | rounded | The style of the progress bar. |
now | | The current progress value. |
indeterminate | false | If the progress bar is in an indeterminate state. |
export interface CircularProgressProps extends SVGProps<SVGSVGElement> {
bgStyle?: 'filled' | 'transparent'
define function CircularProgress(props: CircularProgressProps): ReactNode
Name | Default | Description |
---|
id | | The id of the CircularProgress. |
label | `` | A description of what the progress bar is for. |
now | | The current progress value. |
title | | The title of the CircularProgress for a11y. |
syntax | Done | What is shown below the now value. |
bgStyle | filled | The fill style of the center circle used for the bg. |