diff --git a/apps/docs/content/docs/configure.mdx b/apps/docs/content/docs/configure.mdx index 0f4a20b..73c802f 100644 --- a/apps/docs/content/docs/configure.mdx +++ b/apps/docs/content/docs/configure.mdx @@ -13,16 +13,16 @@ The `configure()` method updates the default settings of the progress bar. BProgress.configure({ minimum: 0.08, maximum: 1, - template: `
-
`, + template: `
+
`, easing: 'linear', positionUsing: 'width', speed: 200, trickle: true, trickleSpeed: 200, showSpinner: true, - barSelector: '[role="bar"]', - spinnerSelector: '[role="spinner"]', + barSelector: '.bar', + spinnerSelector: '.spinner', parent: 'body', direction: 'ltr', }); @@ -77,15 +77,15 @@ type BProgressDirection = 'ltr' | 'rtl'; |----------|------------------------|------------------------------------|-----------------------------------------------| | minimum | number | 0.08 | The minimum percentage value between 0 and 1. | | maximum | number | 1 | The maximum percentage value between 0 and 1. | -| template | string \| null | `
` | The template of the progress bar. Classes are important for CSS, but if you have a custom CSS you can put any classes you like. The roles depend on those configured in the `barSelector` and `spinnerSelector` options. | +| template | string \| null | `
` | The template of the progress bar. Classes needs to match with the `barSelector` and `spinnerSelector` options. | | easing | string | 'linear' | The easing of the progress bar. | | positionUsing | BProgressPositionUsing | 'width' | The position using of the progress bar. | | speed | number | 200 | The speed of the progress bar. | | trickle | boolean | true | If `true`, the progress bar will trickle. | | trickleSpeed | number | 200 | The speed of the trickle. | | showSpinner | boolean | true | If `true`, the progress bar will show the spinner. | -| barSelector | string | '[role="bar"]' | The bar selector. | -| spinnerSelector | string | '[role="spinner"]' | The spinner selector. | +| barSelector | string | '.bar' | The bar selector. | +| spinnerSelector | string | '.spinner' | The spinner selector. | | parent | HTMLElement \| string | 'body' | The parent container of the progress bar. (if `template` is not `null`) | | direction | BProgressDirection | 'ltr' | The direction of the progress bar. | @@ -97,16 +97,16 @@ type BProgressDirection = 'ltr' | 'rtl'; ```html