primevue-mirror/doc/installation/PropCasesDoc.vue

26 lines
614 B
Vue
Raw Normal View History

2023-02-28 08:29:30 +00:00
<template>
<DocSectionText v-bind="$attrs">
2023-03-28 19:25:11 +00:00
<p>Component prop names are described as camel case throughout the documentation however kebab-case is also fully supported. Events on the other hand should always be kebab-case.</p>
2023-02-28 08:29:30 +00:00
2023-03-03 12:15:58 +00:00
<DocSectionCode :code="code" hideToggleCode hideCodeSandbox hideStackBlitz />
2023-02-28 08:29:30 +00:00
</DocSectionText>
</template>
<script>
export default {
data() {
return {
code: {
2023-09-22 12:54:14 +00:00
basic: `
<Dialog :showHeader="false"></Dialog>
2023-02-28 08:29:30 +00:00
<!-- can be written as -->
2023-10-15 09:38:39 +00:00
<Dialog :show-header="false"></Dialog>
`
2023-02-28 08:29:30 +00:00
}
};
}
};
</script>