An open API service indexing awesome lists of open source software.

https://github.com/mathsgod/formkit-ionic


https://github.com/mathsgod/formkit-ionic

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# formkit-ionic

## Setup

1. This plugin requires the [Ionic](https://ionicframework.com/docs/vue/quickstart) and [FormKit](https://formkit.com/)
2. Setup in main.ts
```typescript
const app = createApp(App);

import { plugin, defaultConfig } from '@formkit/vue'
import { createIonicPlugin } from "formkit-ionic";
app.use(plugin, defaultConfig({
plugins: [createIonicPlugin()]
}))
```

## Usage

### Basic

```html

import { ref } from "vue";
let data = ref({})

let options = {
bacon: 'Bacon',
sausage: 'Sausage',
egg: 'Egg',
cheese: 'Cheese',
tomato: 'Tomato',
mushroom: 'Mushroom',
onion: 'Onion',
pepper: 'Pepper',
lettuce: 'Lettuce',
avocado: 'Avocado',
olive: 'Olive',
corn: 'Corn',
carrot: 'Carrot',
cucumber: 'Cucumber',
};

let onSubmit = () => {
console.log(data.value);
};


{{ data }}






Sign In


```