primevue-mirror/doc/theming/PrimeFlexDoc.vue

35 lines
1.8 KiB
Vue
Raw Normal View History

2023-02-28 08:29:30 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>
<a href="https://www.primefaces.org/primeflex/">PrimeFlex</a> is a lightweight responsive CSS utility library to accompany Prime UI libraries and static webpages as well. PrimeVue can be used with any CSS utility library like bootstrap
and tailwind however PrimeFlex has benefits like integration with PrimeVue themes using CSS variables so that colors classes e.g. <i>bg-blue-500</i> receive the color code from the PrimeVue theme being used. PrimeVue follows the CSS
2023-02-28 08:29:30 +00:00
utility approach of PrimeFlex and currently does not provide an extended style property like <i>sx</i>. Same approach is also utilized in <a href="https://blocks.primevue.org">PrimeBlocks for PrimeVue</a> project as well.
</p>
<p>Here is an example to demonstrate how to align 3 buttons horizontally on bigger screens and display them as stacked on smaller ones.</p>
</DocSectionText>
<div class="card flex flex-column md:flex-row md:justify-content-between row-gap-3">
<Button type="button" label="Button 1"></Button>
2023-03-03 12:15:20 +00:00
<Button type="button" label="Button 2" severity="secondary"></Button>
<Button type="button" label="Button 3" severity="help"></Button>
2023-02-28 08:29:30 +00:00
</div>
2023-03-29 10:45:02 +00:00
<DocSectionCode :code="code" hideToggleCode hideCodeSandbox hideStackBlitz />
2023-02-28 08:29:30 +00:00
</template>
<script>
export default {
data() {
return {
code: {
basic: `
<div class="flex flex-column md:flex-row md:justify-content-between row-gap-3">
<Button type="button" label="Button 1"></Button>
2023-03-03 12:15:20 +00:00
<Button type="button" label="Button 2" severity="secondary"></Button>
<Button type="button" label="Button 3" severity="help"></Button>
2023-03-02 12:23:54 +00:00
</div>`
2023-02-28 08:29:30 +00:00
}
};
}
};
</script>