2023-03-03 07:02:10 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>
|
2024-03-31 12:10:06 +00:00
|
|
|
<a href="https://github.com/css-modules/css-modules">CSS modules</a> are supported by enabling the <i>module</i> property on a style element within your SFC. Use the <i>$style</i> keyword to apply classes to a PrimeVue component. It is
|
|
|
|
recommend to enable <i>cssLayer</i> when using CSS modules so that the PrimeVue styles have low CSS specificity.
|
2023-03-03 07:02:10 +00:00
|
|
|
</p>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="card flex justify-center">
|
2023-10-15 09:38:39 +00:00
|
|
|
<InputText :class="$style.myinput" placeholder="Search" />
|
|
|
|
</div>
|
2024-01-30 08:16:35 +00:00
|
|
|
<DocSectionCode :code="code1" hideToggleCode importCode hideStackBlitz />
|
|
|
|
<DocSectionCode :code="code2" hideToggleCode hideStackBlitz />
|
2023-03-03 07:02:10 +00:00
|
|
|
</DocSectionText>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code1: {
|
2023-09-22 12:54:14 +00:00
|
|
|
basic: `
|
|
|
|
<style module>
|
2023-03-03 07:02:10 +00:00
|
|
|
.myinput {
|
|
|
|
border-radius: 2rem;
|
|
|
|
padding: 1rem 2rem;
|
|
|
|
border-width: 2px;
|
|
|
|
}
|
|
|
|
</style>
|
2023-09-22 12:54:14 +00:00
|
|
|
`
|
2023-03-03 07:02:10 +00:00
|
|
|
},
|
|
|
|
code2: {
|
2023-10-15 09:38:39 +00:00
|
|
|
basic: `
|
|
|
|
<template>
|
2023-03-03 07:02:10 +00:00
|
|
|
<InputText :class="$style.myinput" placeholder="Search" />
|
2023-10-15 09:38:39 +00:00
|
|
|
</template>
|
|
|
|
`
|
2023-03-03 07:02:10 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style module>
|
|
|
|
.myinput {
|
|
|
|
border-radius: 2rem;
|
|
|
|
padding: 1rem 2rem;
|
|
|
|
border-width: 2px;
|
|
|
|
}
|
|
|
|
</style>
|