primevue-mirror/doc/theming/styled/ScaleDoc.vue

26 lines
800 B
Vue
Raw Normal View History

2023-02-28 08:29:30 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>
PrimeVue utilizes <i>rem</i> units to make sure the components blend in with the rest of your UI perfectly. This also enables scaling, for example changing the size of the components is easy as configuring the font size of your document.
2023-03-22 07:29:18 +00:00
Code below sets the scale of the components based on <i>16px</i>. If you require bigger or smaller components, just change this variable and components will scale accordingly.
2023-02-28 08:29:30 +00:00
</p>
</DocSectionText>
2024-01-30 08:16:35 +00:00
<DocSectionCode :code="code" hideToggleCode importCode 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: `
html {
2023-02-28 08:29:30 +00:00
font-size: 14px;
2023-09-22 12:54:14 +00:00
}
`
2023-02-28 08:29:30 +00:00
}
};
}
};
</script>