DemoCustomInputCustomCheckboxesWithIcon.vue
768 Bytes
<script setup lang="ts">
import type { CustomInputContent } from '@core/types'
const checkboxContent: CustomInputContent[] = [
{
title: 'Backup',
desc: 'Backup every file from your project.',
value: 'backup',
icon: 'ri-server-line',
},
{
title: 'Encrypt',
desc: 'Translate your data to encrypted text.',
value: 'encrypt',
icon: 'ri-shield-line',
},
{
title: 'Site Lock',
desc: 'Security tool to protect your website.',
value: 'site-lock',
icon: 'ri-lock-line',
},
]
const selectedCheckbox = ref(['backup'])
</script>
<template>
<CustomCheckboxesWithIcon
v-model:selected-checkbox="selectedCheckbox"
:checkbox-content="checkboxContent"
:grid-column="{ sm: '4', cols: '12' }"
/>
</template>