primevue-mirror/apps/showcase/doc/message/OutlinedDoc.vue

64 lines
2.5 KiB
Vue
Raw Normal View History

2024-10-26 13:04:04 +00:00
<template>
<DocSectionText v-bind="$attrs">
2024-10-26 14:23:18 +00:00
<p>Configure the <i>variant</i> value as <i>outlined</i> for messages with borders and no background.</p>
2024-10-26 13:04:04 +00:00
</DocSectionText>
2024-10-26 14:23:18 +00:00
<div class="card flex flex-wrap gap-4 justify-center">
<Message severity="success" variant="outlined">Success Message</Message>
<Message severity="info" variant="outlined">Info Message</Message>
<Message severity="warn" variant="outlined">Warn Message</Message>
<Message severity="error" variant="outlined">Error Message</Message>
<Message severity="secondary" variant="outlined">Secondary Message</Message>
<Message severity="contrast" variant="outlined">Contrast Message</Message>
2024-10-26 13:04:04 +00:00
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
code: {
basic: `
2024-10-26 14:23:18 +00:00
<Message severity="success" variant="outlined">Success Message</Message>
<Message severity="info" variant="outlined">Info Message</Message>
<Message severity="warn" variant="outlined">Warn Message</Message>
<Message severity="error" variant="outlined">Error Message</Message>
<Message severity="secondary" variant="outlined">Secondary Message</Message>
<Message severity="contrast" variant="outlined">Contrast Message</Message>
2024-10-26 13:04:04 +00:00
`,
options: `
<template>
2024-10-26 14:23:18 +00:00
<div class="card flex flex-wrap gap-4 justify-center">
<Message severity="success" variant="outlined">Success Message</Message>
<Message severity="info" variant="outlined">Info Message</Message>
<Message severity="warn" variant="outlined">Warn Message</Message>
<Message severity="error" variant="outlined">Error Message</Message>
<Message severity="secondary" variant="outlined">Secondary Message</Message>
<Message severity="contrast" variant="outlined">Contrast Message</Message>
2024-10-26 13:04:04 +00:00
</div>
</template>
<script>
<\/script>
`,
composition: `
<template>
2024-10-26 14:23:18 +00:00
<div class="card flex flex-wrap gap-4 justify-center">
<Message severity="success" variant="outlined">Success Message</Message>
<Message severity="info" variant="outlined">Info Message</Message>
<Message severity="warn" variant="outlined">Warn Message</Message>
<Message severity="error" variant="outlined">Error Message</Message>
<Message severity="secondary" variant="outlined">Secondary Message</Message>
<Message severity="contrast" variant="outlined">Contrast Message</Message>
2024-10-26 13:04:04 +00:00
</div>
</template>
<script setup>
<\/script>
`
}
};
}
};
</script>