primevue-mirror/pages/inputswitch/index.vue

45 lines
1.0 KiB
Vue
Raw Normal View History

2022-09-09 20:41:18 +00:00
<template>
<div>
2022-12-19 11:57:07 +00:00
<Head>
<Title>Vue InputSwitch Component</Title>
<Meta name="description" content="InputSwitch is used to select a boolean value." />
</Head>
2022-09-09 20:41:18 +00:00
<div class="content-section introduction">
<div class="feature-intro">
<h1>InputSwitch</h1>
<p>InputSwitch is used to select a boolean value.</p>
</div>
<AppDemoActions />
</div>
<div class="content-section implementation">
<div class="card">
<h5>Basic</h5>
<InputSwitch v-model="checked1" />
<h5>Preselection</h5>
<InputSwitch v-model="checked2" />
</div>
</div>
<InputSwitchDoc />
</div>
</template>
<script>
import InputSwitchDoc from './InputSwitchDoc';
export default {
data() {
return {
checked1: false,
checked2: true
};
},
components: {
InputSwitchDoc: InputSwitchDoc
}
};
</script>