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 usign 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
|
|
|
|
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>
|
2023-03-03 07:02:10 +00:00
|
|
|
<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-02-28 17:40:48 +00:00
|
|
|
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
|
2023-02-28 08:29:30 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code: {
|
|
|
|
basic: `
|
2023-03-03 07:02:10 +00:00
|
|
|
<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>
|