2023-02-28 08:29:30 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>
|
2023-06-01 11:08:18 +00:00
|
|
|
<a href="https://primeflex.org/">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 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.
|
2023-02-28 08:29:30 +00:00
|
|
|
</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-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: {
|
2023-09-22 12:54:14 +00:00
|
|
|
basic: `
|
|
|
|
<div class="flex flex-column md:flex-row md:justify-content-between row-gap-3">
|
2023-03-03 07:02:10 +00:00
|
|
|
<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>
|