-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83ce636
commit be1233f
Showing
14 changed files
with
288 additions
and
75 deletions.
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
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 |
---|---|---|
@@ -1,8 +1,91 @@ | ||
--- | ||
title: Installation | ||
title: AstroJS Guide | ||
description: This guide will show How to install Flexilla In your AstroJS Project | ||
--- | ||
|
||
## Quick setup | ||
|
||
This guide will help you get started with Flexilla | ||
This guide will help you to use Flexilla in your new or existing AstroJs Project | ||
|
||
## Install via npm | ||
|
||
<Stepper> | ||
<Step> | ||
### Create a new Project | ||
Create a new project if not having one. | ||
<BoxCodeLang text={"Shell"} icon={"shell"}> | ||
```bash | ||
npm create astro@latest astro-example | ||
cd astro-example | ||
``` | ||
</BoxCodeLang> | ||
</Step> | ||
<Step> | ||
### Install flexilla | ||
<TabCodeGroup | ||
values={[ | ||
{ text: "npm", value: "npm-tab", icon: "npm"}, | ||
{ text: "yarn", value: "yarn-tab", icon: "yarn"}, | ||
]} | ||
autoHeight | ||
showCopyBlock | ||
> | ||
<TabPanel value="npm-tab" active={true}> | ||
```bash | ||
npm i @flexilla/flexilla | ||
``` | ||
</TabPanel> | ||
<TabPanel value="yarn-tab"> | ||
```bash | ||
yarn add @flexilla/flexilla | ||
``` | ||
</TabPanel> | ||
</TabCodeGroup> | ||
</Step> | ||
<Step> | ||
### Usage | ||
<BoxCodeLang text={"script"} icon={"js"}> | ||
```js | ||
import {Accordion, Tabs} from "@flexilla/flexilla" | ||
|
||
const accordion = new Accordion("#my-accordion") | ||
|
||
const tabs = new Tabs("#my-tabs",{ | ||
// options | ||
}) | ||
``` | ||
</BoxCodeLang> | ||
</Step> | ||
</Stepper> | ||
|
||
|
||
## Using CDN | ||
|
||
<Stepper> | ||
<Step> | ||
### Import the library via CDN | ||
<BoxCodeLang text={".../SomeComponent.astro"} icon={"astro"}> | ||
```html | ||
<script type="module"> // [!code ++] | ||
import * as Flexilla from 'https://esm.run/@flexilla/flexilla'; // [!code ++] | ||
</script> // [!code ++] | ||
``` | ||
</BoxCodeLang> | ||
</Step> | ||
<Step> | ||
### Usage | ||
<BoxCodeLang text={".../SomeComponent.astro"} icon={"astro"}> | ||
```html | ||
<script type="module"> | ||
new Flexilla.Tabs("[data-tabs-el]") // [!code ++] | ||
Flexilla.Accordion.AutoInit(".accordion-el") // [!code ++] | ||
</script> | ||
``` | ||
</BoxCodeLang> | ||
</Step> | ||
</Stepper> | ||
|
||
|
||
|
||
## Quick Start Examples | ||
|
||
Checkout these quick start examples to get a feel of Flexilla + Astro [here](https://github.com/unify-ui-dev/flexilla/tree/main/examples/astro-example) |
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
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 |
---|---|---|
@@ -1,8 +1,90 @@ | ||
--- | ||
title: Installation | ||
title: Vite Guide | ||
description: This guide will show How to install Flexilla In your ViteJS Project | ||
--- | ||
|
||
## Quick setup | ||
This guide will help you to use Flexilla in your new or existing ViteJS Project | ||
|
||
This guide will help you get started with Flexilla | ||
## Install via npm | ||
|
||
<Stepper> | ||
<Step> | ||
### Create a new Project | ||
Create a new project if not having one. | ||
<BoxCodeLang text={"Shell"} icon={"shell"}> | ||
```bash | ||
npm create vite@latest vite-example -- --template vanilla-ts | ||
cd vite-example | ||
``` | ||
</BoxCodeLang> | ||
</Step> | ||
<Step> | ||
### Install flexilla | ||
<TabCodeGroup | ||
values={[ | ||
{ text: "npm", value: "npm-tab", icon: "npm"}, | ||
{ text: "yarn", value: "yarn-tab", icon: "yarn"}, | ||
]} | ||
autoHeight | ||
showCopyBlock | ||
> | ||
<TabPanel value="npm-tab" active={true}> | ||
```bash | ||
npm i @flexilla/flexilla | ||
``` | ||
</TabPanel> | ||
<TabPanel value="yarn-tab"> | ||
```bash | ||
yarn add @flexilla/flexilla | ||
``` | ||
</TabPanel> | ||
</TabCodeGroup> | ||
</Step> | ||
<Step> | ||
### Usage | ||
<BoxCodeLang text={"script"} icon={"js"}> | ||
```js | ||
import {Accordion, Tabs} from "@flexilla/flexilla" | ||
|
||
const accordion = new Accordion("#my-accordion") | ||
|
||
const tabs = new Tabs("#my-tabs",{ | ||
// options | ||
}) | ||
``` | ||
</BoxCodeLang> | ||
</Step> | ||
</Stepper> | ||
|
||
|
||
## Using CDN | ||
|
||
<Stepper> | ||
<Step> | ||
### Import the library via CDN | ||
<BoxCodeLang text={"src/main.ts"} icon={"ts"}> | ||
```html | ||
<script type="module"> // [!code ++] | ||
import * as Flexilla from 'https://esm.run/@flexilla/flexilla'; // [!code ++] | ||
</script> // [!code ++] | ||
``` | ||
</BoxCodeLang> | ||
</Step> | ||
<Step> | ||
### Usage | ||
<BoxCodeLang text={"index.html"} icon={"html"}> | ||
```html | ||
<script type="module"> | ||
new Flexilla.Tabs("[data-tabs-el]") // [!code ++] | ||
Flexilla.Accordion.AutoInit(".accordion-el") // [!code ++] | ||
</script> | ||
``` | ||
</BoxCodeLang> | ||
</Step> | ||
</Stepper> | ||
|
||
|
||
|
||
## Quick Start Examples | ||
|
||
Checkout these quick start examples to get a feel of Flexilla + ViteJS [here](https://github.com/unify-ui-dev/flexilla/tree/main/examples/vite-example) |
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 |
---|---|---|
@@ -1,8 +1,65 @@ | ||
--- | ||
title: Installation | ||
title: Vue Guide | ||
description: This guide will show How to install Flexilla In your VueJS Project | ||
--- | ||
|
||
## Quick setup | ||
|
||
This guide will help you get started with Flexilla | ||
This guide will help you to use Flexilla in your new or existing VueJS Project | ||
|
||
## Install via npm | ||
|
||
<Stepper> | ||
<Step> | ||
### Create a new Project | ||
Create a new project if not having one. | ||
<BoxCodeLang text={"Shell"} icon={"shell"}> | ||
```bash | ||
npm create vue@latest vue-example | ||
cd vue-example | ||
``` | ||
</BoxCodeLang> | ||
</Step> | ||
<Step> | ||
### Install flexilla | ||
<TabCodeGroup | ||
values={[ | ||
{ text: "npm", value: "npm-tab", icon: "npm"}, | ||
{ text: "yarn", value: "yarn-tab", icon: "yarn"}, | ||
]} | ||
autoHeight | ||
showCopyBlock | ||
> | ||
<TabPanel value="npm-tab" active={true}> | ||
```bash | ||
npm i @flexilla/flexilla | ||
``` | ||
</TabPanel> | ||
<TabPanel value="yarn-tab"> | ||
```bash | ||
yarn add @flexilla/flexilla | ||
``` | ||
</TabPanel> | ||
</TabCodeGroup> | ||
</Step> | ||
<Step> | ||
### Usage | ||
<BoxCodeLang text={".../AccordionEx.vue"} icon={"vue"}> | ||
```html | ||
<script setup lang="ts"> | ||
import { onMounted } from 'vue' // [!code ++] | ||
import { Accordion } from "@flexilla/flexilla" // [!code ++] | ||
onMounted(() => { // [!code ++] | ||
new Accordion("[data-fx-accordion]") // [!code ++] | ||
}) // [!code ++] | ||
</script> | ||
``` | ||
</BoxCodeLang> | ||
</Step> | ||
</Stepper> | ||
|
||
|
||
|
||
|
||
## Quick Start Examples | ||
|
||
Checkout these quick start examples to get a feel of Flexilla + VueJS [here](https://github.com/unify-ui-dev/flexilla/tree/main/examples/vue-example) |
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
Oops, something went wrong.