2023-07-09 21:13:49 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>Unstyled mode is enabled for the whole suite by setting <i>unstyled</i> as true during PrimeVue installation.</p>
|
2024-01-30 08:16:35 +00:00
|
|
|
<DocSectionCode :code="code1" hideToggleCode importCode hideStackBlitz />
|
2023-07-09 21:13:49 +00:00
|
|
|
<p>Alternatively even in the default styled mode, a particular component can still be used as unstyled by adding the <i>unstyled</i> prop of the component.</p>
|
|
|
|
<div class="card flex justify-content-center">
|
|
|
|
<Button label="Check" icon="pi pi-check" unstyled />
|
|
|
|
</div>
|
2024-01-30 08:16:35 +00:00
|
|
|
<DocSectionCode :code="code2" hideToggleCode hideStackBlitz />
|
2023-07-09 21:13:49 +00:00
|
|
|
</DocSectionText>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code1: {
|
2023-09-22 12:54:14 +00:00
|
|
|
basic: `
|
|
|
|
import { createApp } from "vue";
|
2023-07-09 21:13:49 +00:00
|
|
|
import PrimeVue from "primevue/config";
|
|
|
|
const app = createApp(App);
|
|
|
|
|
2023-09-22 12:54:14 +00:00
|
|
|
app.use(PrimeVue, { unstyled: true });
|
|
|
|
`
|
2023-07-09 21:13:49 +00:00
|
|
|
},
|
|
|
|
code2: {
|
2023-09-22 12:54:14 +00:00
|
|
|
basic: `
|
2023-10-15 09:38:39 +00:00
|
|
|
<Button label="Check" icon="pi pi-check" unstyled></Button>
|
|
|
|
`
|
2023-07-09 21:13:49 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|