diff --git a/components/content/inspira/examples/sparkles-text/SparklesTextDemo.vue b/components/content/inspira/examples/sparkles-text/SparklesTextDemo.vue new file mode 100644 index 0000000..63e00fb --- /dev/null +++ b/components/content/inspira/examples/sparkles-text/SparklesTextDemo.vue @@ -0,0 +1,5 @@ + diff --git a/components/content/inspira/ui/sparkles-text/Sparkle.vue b/components/content/inspira/ui/sparkles-text/Sparkle.vue new file mode 100644 index 0000000..80fe3a0 --- /dev/null +++ b/components/content/inspira/ui/sparkles-text/Sparkle.vue @@ -0,0 +1,49 @@ + + + diff --git a/components/content/inspira/ui/sparkles-text/SparklesText.vue b/components/content/inspira/ui/sparkles-text/SparklesText.vue new file mode 100644 index 0000000..9f09d5c --- /dev/null +++ b/components/content/inspira/ui/sparkles-text/SparklesText.vue @@ -0,0 +1,89 @@ + + + + + diff --git a/content/2.components/sparkles-text.md b/content/2.components/sparkles-text.md new file mode 100644 index 0000000..1457495 --- /dev/null +++ b/content/2.components/sparkles-text.md @@ -0,0 +1,35 @@ +--- +title: Sparkles Text +description: A dynamic text that generates continuous sparkles with smooth transitions, perfect for highlighting text with animated stars. +navBadges: + - value: New + type: lime +--- + +::ComponentLoader{label="Preview" componentName="SparklesTextDemo" type="examples" id="sparkles-text"} +:: + +## API + +| Prop Name | Type | Default | Description | +| --------------- | -------- | ---------------------------------------- | --------------------------------------------- | +| `class` | `string` | `-` | The class to be applied to the sparkles text. | +| `text` | `string` | `Inspira UI` | The text to display. | +| `sparklesCount` | `number` | `10` | sparkles count that appears on the text. | +| `colors` | `object` | `{first: '#A07CFE'; second: '#FE8FB5';}` | The sparkles colors. | + +## Component Code + +You can copy and paste the following code to create these components: + +::code-group +::CodeViewerTab{label="SparklesText.vue" icon="vscode-icons:file-type-vue" componentName="SparklesText" type="ui" id="sparkles-text"} +:: + +::CodeViewerTab{label="Sparkle.vue" icon="vscode-icons:file-type-vue" componentName="Sparkle" type="ui" id="sparkles-text"} +:: + +## Credits + +- Credits to [SivaReddy Uppathi](https://github.com/sivareddyuppathi) for this component. +- Inspired from [Magic UI](https://magicui.design/docs/components/sparkles-text).