-
Uploading file…
+ args: {
+ label: 'Uploading file…',
+ },
+ render: ({ label, ...args }) => (
+
@@ -48,22 +62,23 @@ export const WithLabel: Story = {
/** Indeterminate state — `value` is `null` while the task's completion is unknown. */
export const Indeterminate: Story = {
- args: { value: null },
- render: (args) => (
-
- ),
+ args: { value: null, label: 'Loading…' },
+ render: ({ label, ...args }) =>
,
};
/** Several tasks at different points of completion, each labelled with its percentage. */
export const Values: Story = {
- render: () => (
+ args: {
+ label: 'Task',
+ },
+ render: ({ label }) => (
{[10, 40, 75, 100].map((value) => (
-