-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(progressSpinner): add progress spinner component
RISDEV-4815
- Loading branch information
1 parent
f99a432
commit 783642e
Showing
3 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Meta, StoryObj } from "@storybook/vue3"; | ||
import ProgressSpinner from "primevue/progressspinner"; | ||
import { html } from "@/lib/tags.ts"; | ||
|
||
const meta: Meta<typeof ProgressSpinner> = { | ||
component: ProgressSpinner, | ||
|
||
tags: ["autodocs"], | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = { | ||
render: (args) => ({ | ||
components: { ProgressSpinner }, | ||
setup() { | ||
return { args }; | ||
}, | ||
template: html`<ProgressSpinner />`, | ||
}), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { ProgressSpinnerPassThroughOptions } from "primevue/progressspinner"; | ||
import { tw } from "@/lib/tags.ts"; | ||
|
||
const progressSpinner: ProgressSpinnerPassThroughOptions = { | ||
root: { | ||
class: tw`relative mx-auto inline-block h-28 w-28 animate-spin`, | ||
}, | ||
|
||
circle: { | ||
class: tw`fill-transparent stroke-current stroke-[4px] text-blue-800 [stroke-dasharray:200] [stroke-dashoffset:100]`, | ||
}, | ||
}; | ||
|
||
export default progressSpinner; |