primevue-mirror/apps/showcase/doc/button/IconOnlyDoc.vue

246 lines
15 KiB
Vue
Raw Normal View History

2023-02-28 08:29:30 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>Buttons can have icons without labels.</p>
</DocSectionText>
<div class="card">
2024-05-20 12:14:38 +00:00
<div class="flex flex-wrap justify-center gap-4 mb-6">
2023-02-28 08:29:30 +00:00
<Button icon="pi pi-check" aria-label="Filter" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-bookmark" severity="secondary" aria-label="Bookmark" />
<Button icon="pi pi-search" severity="success" aria-label="Search" />
<Button icon="pi pi-user" severity="info" aria-label="User" />
2024-04-16 07:35:56 +00:00
<Button icon="pi pi-bell" severity="warn" aria-label="Notification" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-heart" severity="help" aria-label="Favorite" />
<Button icon="pi pi-times" severity="danger" aria-label="Cancel" />
2024-05-29 23:23:42 +00:00
<Button icon="pi pi-star" severity="contrast" aria-label="Star" />
2023-02-28 08:29:30 +00:00
</div>
2024-05-20 12:14:38 +00:00
<div class="flex flex-wrap justify-center gap-4 mb-6">
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-check" rounded aria-label="Filter" />
<Button icon="pi pi-bookmark" severity="secondary" rounded aria-label="Bookmark" />
<Button icon="pi pi-search" severity="success" rounded aria-label="Search" />
<Button icon="pi pi-user" severity="info" rounded aria-label="User" />
2024-04-16 07:35:56 +00:00
<Button icon="pi pi-bell" severity="warn" rounded aria-label="Notification" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-heart" severity="help" rounded aria-label="Favorite" />
<Button icon="pi pi-times" severity="danger" rounded aria-label="Cancel" />
2024-05-29 23:23:42 +00:00
<Button icon="pi pi-star" severity="contrast" rounded aria-label="Star" />
2023-02-28 08:29:30 +00:00
</div>
2024-05-20 12:14:38 +00:00
<div class="flex flex-wrap justify-center gap-4 mb-6">
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-check" rounded outlined aria-label="Filter" />
<Button icon="pi pi-bookmark" severity="secondary" rounded outlined aria-label="Bookmark" />
<Button icon="pi pi-search" severity="success" rounded outlined aria-label="Search" />
<Button icon="pi pi-user" severity="info" rounded outlined aria-label="User" />
2024-04-16 07:35:56 +00:00
<Button icon="pi pi-bell" severity="warn" rounded outlined aria-label="Notification" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-heart" severity="help" rounded outlined aria-label="Favorite" />
<Button icon="pi pi-times" severity="danger" rounded outlined aria-label="Cancel" />
2024-05-29 23:23:42 +00:00
<Button icon="pi pi-star" severity="contrast" rounded outlined aria-label="Star" />
2023-02-28 08:29:30 +00:00
</div>
2024-05-20 12:14:38 +00:00
<div class="flex flex-wrap justify-center gap-4 mb-6">
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-check" text raised rounded aria-label="Filter" />
<Button icon="pi pi-bookmark" severity="secondary" text raised rounded aria-label="Bookmark" />
<Button icon="pi pi-search" severity="success" text raised rounded aria-label="Search" />
<Button icon="pi pi-user" severity="info" text raised rounded aria-label="User" />
2024-04-16 07:35:56 +00:00
<Button icon="pi pi-bell" severity="warn" text raised rounded aria-label="Notification" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-heart" severity="help" text raised rounded aria-label="Favorite" />
<Button icon="pi pi-times" severity="danger" text raised rounded aria-label="Cancel" />
2024-05-29 23:23:42 +00:00
<Button icon="pi pi-star" severity="contrast" text raised rounded aria-label="Star" />
2023-02-28 08:29:30 +00:00
</div>
2024-05-20 12:14:38 +00:00
<div class="flex flex-wrap justify-center gap-4">
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-check" text rounded aria-label="Filter" />
<Button icon="pi pi-bookmark" severity="secondary" text rounded aria-label="Bookmark" />
<Button icon="pi pi-search" severity="success" text rounded aria-label="Search" />
<Button icon="pi pi-user" severity="info" text rounded aria-label="User" />
2024-04-16 07:35:56 +00:00
<Button icon="pi pi-bell" severity="warn" text rounded aria-label="Notification" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-heart" severity="help" text rounded aria-label="Favorite" />
<Button icon="pi pi-times" severity="danger" text rounded aria-label="Cancel" />
2024-05-29 23:23:42 +00:00
<Button icon="pi pi-star" severity="contrast" text rounded aria-label="Star" />
2023-02-28 08:29:30 +00:00
</div>
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
code: {
2023-09-22 12:54:14 +00:00
basic: `
<Button icon="pi pi-check" aria-label="Filter" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-bookmark" severity="secondary" aria-label="Bookmark" />
<Button icon="pi pi-search" severity="success" aria-label="Search" />
<Button icon="pi pi-user" severity="info" aria-label="User" />
2024-04-16 07:35:56 +00:00
<Button icon="pi pi-bell" severity="warn" aria-label="Notification" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-heart" severity="help" aria-label="Favorite" />
<Button icon="pi pi-times" severity="danger" aria-label="Cancel" />
2024-05-29 23:23:42 +00:00
<Button icon="pi pi-star" severity="contrast" aria-label="Star" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-check" rounded aria-label="Filter" />
<Button icon="pi pi-bookmark" severity="secondary" rounded aria-label="Bookmark" />
<Button icon="pi pi-search" severity="success" rounded aria-label="Search" />
<Button icon="pi pi-user" severity="info" rounded aria-label="User" />
2024-04-16 07:35:56 +00:00
<Button icon="pi pi-bell" severity="warn" rounded aria-label="Notification" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-heart" severity="help" rounded aria-label="Favorite" />
<Button icon="pi pi-times" severity="danger" rounded aria-label="Cancel" />
2024-05-29 23:23:42 +00:00
<Button icon="pi pi-star" severity="contrast" rounded aria-label="Star" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-check" rounded outlined aria-label="Filter" />
<Button icon="pi pi-bookmark" severity="secondary" rounded outlined aria-label="Bookmark" />
<Button icon="pi pi-search" severity="success" rounded outlined aria-label="Search" />
<Button icon="pi pi-user" severity="info" rounded outlined aria-label="User" />
2024-04-16 07:35:56 +00:00
<Button icon="pi pi-bell" severity="warn" rounded outlined aria-label="Notification" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-heart" severity="help" rounded outlined aria-label="Favorite" />
<Button icon="pi pi-times" severity="danger" rounded outlined aria-label="Cancel" />
2024-05-29 23:23:42 +00:00
<Button icon="pi pi-star" severity="contrast" rounded outlined aria-label="Star" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-check" text raised rounded aria-label="Filter" />
<Button icon="pi pi-bookmark" severity="secondary" text raised rounded aria-label="Bookmark" />
<Button icon="pi pi-search" severity="success" text raised rounded aria-label="Search" />
<Button icon="pi pi-user" severity="info" text raised rounded aria-label="User" />
2024-04-16 07:35:56 +00:00
<Button icon="pi pi-bell" severity="warn" text raised rounded aria-label="Notification" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-heart" severity="help" text raised rounded aria-label="Favorite" />
<Button icon="pi pi-times" severity="danger" text raised rounded aria-label="Cancel" />
2024-05-29 23:23:42 +00:00
<Button icon="pi pi-star" severity="contrast" text raised rounded aria-label="Star" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-check" text rounded aria-label="Filter" />
<Button icon="pi pi-bookmark" severity="secondary" text rounded aria-label="Bookmark" />
<Button icon="pi pi-search" severity="success" text rounded aria-label="Search" />
<Button icon="pi pi-user" severity="info" text rounded aria-label="User" />
2024-04-16 07:35:56 +00:00
<Button icon="pi pi-bell" severity="warn" text rounded aria-label="Notification" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-heart" severity="help" text rounded aria-label="Favorite" />
2023-10-15 09:38:39 +00:00
<Button icon="pi pi-times" severity="danger" text rounded aria-label="Cancel" />
2024-05-29 23:23:42 +00:00
<Button icon="pi pi-star" severity="contrast" text rounded aria-label="Star" />
2023-10-15 09:38:39 +00:00
`,
2023-09-22 12:54:14 +00:00
options: `
<template>
2023-02-28 08:29:30 +00:00
<div class="card">
2024-05-20 12:14:38 +00:00
<div class="flex flex-wrap justify-center gap-4 mb-6">
2023-02-28 08:29:30 +00:00
<Button icon="pi pi-check" aria-label="Filter" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-bookmark" severity="secondary" aria-label="Bookmark" />
<Button icon="pi pi-search" severity="success" aria-label="Search" />
<Button icon="pi pi-user" severity="info" aria-label="User" />
2024-04-16 07:35:56 +00:00
<Button icon="pi pi-bell" severity="warn" aria-label="Notification" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-heart" severity="help" aria-label="Favorite" />
<Button icon="pi pi-times" severity="danger" aria-label="Cancel" />
2024-05-29 23:23:42 +00:00
<Button icon="pi pi-star" severity="contrast" aria-label="Star" />
2023-02-28 08:29:30 +00:00
</div>
2024-05-20 12:14:38 +00:00
<div class="flex flex-wrap justify-center gap-4 mb-6">
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-check" rounded aria-label="Filter" />
<Button icon="pi pi-bookmark" severity="secondary" rounded aria-label="Bookmark" />
<Button icon="pi pi-search" severity="success" rounded aria-label="Search" />
<Button icon="pi pi-user" severity="info" rounded aria-label="User" />
2024-04-16 07:35:56 +00:00
<Button icon="pi pi-bell" severity="warn" rounded aria-label="Notification" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-heart" severity="help" rounded aria-label="Favorite" />
<Button icon="pi pi-times" severity="danger" rounded aria-label="Cancel" />
2024-05-29 23:23:42 +00:00
<Button icon="pi pi-star" severity="contrast" rounded aria-label="Star" />
2023-02-28 08:29:30 +00:00
</div>
2024-05-20 12:14:38 +00:00
<div class="flex flex-wrap justify-center gap-4 mb-6">
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-check" rounded outlined aria-label="Filter" />
<Button icon="pi pi-bookmark" severity="secondary" rounded outlined aria-label="Bookmark" />
<Button icon="pi pi-search" severity="success" rounded outlined aria-label="Search" />
<Button icon="pi pi-user" severity="info" rounded outlined aria-label="User" />
2024-04-16 07:35:56 +00:00
<Button icon="pi pi-bell" severity="warn" rounded outlined aria-label="Notification" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-heart" severity="help" rounded outlined aria-label="Favorite" />
<Button icon="pi pi-times" severity="danger" rounded outlined aria-label="Cancel" />
2024-05-29 23:23:42 +00:00
<Button icon="pi pi-star" severity="contrast" rounded outlined aria-label="Star" />
2023-02-28 08:29:30 +00:00
</div>
2024-05-20 12:14:38 +00:00
<div class="flex flex-wrap justify-center gap-4 mb-6">
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-check" text raised rounded aria-label="Filter" />
<Button icon="pi pi-bookmark" severity="secondary" text raised rounded aria-label="Bookmark" />
<Button icon="pi pi-search" severity="success" text raised rounded aria-label="Search" />
<Button icon="pi pi-user" severity="info" text raised rounded aria-label="User" />
2024-04-16 07:35:56 +00:00
<Button icon="pi pi-bell" severity="warn" text raised rounded aria-label="Notification" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-heart" severity="help" text raised rounded aria-label="Favorite" />
<Button icon="pi pi-times" severity="danger" text raised rounded aria-label="Cancel" />
2024-05-29 23:23:42 +00:00
<Button icon="pi pi-star" severity="contrast" text raised rounded aria-label="Star" />
2023-02-28 08:29:30 +00:00
</div>
2024-05-20 12:14:38 +00:00
<div class="flex flex-wrap justify-center gap-4">
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-check" text rounded aria-label="Filter" />
<Button icon="pi pi-bookmark" severity="secondary" text rounded aria-label="Bookmark" />
<Button icon="pi pi-search" severity="success" text rounded aria-label="Search" />
<Button icon="pi pi-user" severity="info" text rounded aria-label="User" />
2024-04-16 07:35:56 +00:00
<Button icon="pi pi-bell" severity="warn" text rounded aria-label="Notification" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-heart" severity="help" text rounded aria-label="Favorite" />
<Button icon="pi pi-times" severity="danger" text rounded aria-label="Cancel" />
2024-05-29 23:23:42 +00:00
<Button icon="pi pi-star" severity="contrast" text rounded aria-label="Star" />
2023-02-28 08:29:30 +00:00
</div>
</div>
</template>
<script>
2023-10-15 09:38:39 +00:00
<\/script>
`,
2023-09-22 12:54:14 +00:00
composition: `
<template>
2023-02-28 08:29:30 +00:00
<div class="card">
2024-05-20 12:14:38 +00:00
<div class="flex flex-wrap justify-center gap-4 mb-6">
2023-02-28 08:29:30 +00:00
<Button icon="pi pi-check" aria-label="Filter" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-bookmark" severity="secondary" aria-label="Bookmark" />
<Button icon="pi pi-search" severity="success" aria-label="Search" />
<Button icon="pi pi-user" severity="info" aria-label="User" />
2024-04-16 07:35:56 +00:00
<Button icon="pi pi-bell" severity="warn" aria-label="Notification" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-heart" severity="help" aria-label="Favorite" />
<Button icon="pi pi-times" severity="danger" aria-label="Cancel" />
2024-05-29 23:23:42 +00:00
<Button icon="pi pi-star" severity="contrast" aria-label="Star" />
2023-02-28 08:29:30 +00:00
</div>
2024-05-20 12:14:38 +00:00
<div class="flex flex-wrap justify-center gap-4 mb-6">
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-check" rounded aria-label="Filter" />
<Button icon="pi pi-bookmark" severity="secondary" rounded aria-label="Bookmark" />
<Button icon="pi pi-search" severity="success" rounded aria-label="Search" />
<Button icon="pi pi-user" severity="info" rounded aria-label="User" />
2024-04-16 07:35:56 +00:00
<Button icon="pi pi-bell" severity="warn" rounded aria-label="Notification" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-heart" severity="help" rounded aria-label="Favorite" />
<Button icon="pi pi-times" severity="danger" rounded aria-label="Cancel" />
2024-05-29 23:23:42 +00:00
<Button icon="pi pi-star" severity="contrast" rounded aria-label="Star" />
2023-02-28 08:29:30 +00:00
</div>
2024-05-20 12:14:38 +00:00
<div class="flex flex-wrap justify-center gap-4 mb-6">
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-check" rounded outlined aria-label="Filter" />
<Button icon="pi pi-bookmark" severity="secondary" rounded outlined aria-label="Bookmark" />
<Button icon="pi pi-search" severity="success" rounded outlined aria-label="Search" />
<Button icon="pi pi-user" severity="info" rounded outlined aria-label="User" />
2024-04-16 07:35:56 +00:00
<Button icon="pi pi-bell" severity="warn" rounded outlined aria-label="Notification" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-heart" severity="help" rounded outlined aria-label="Favorite" />
<Button icon="pi pi-times" severity="danger" rounded outlined aria-label="Cancel" />
2024-05-29 23:23:42 +00:00
<Button icon="pi pi-star" severity="contrast" rounded outlined aria-label="Star" />
2023-02-28 08:29:30 +00:00
</div>
2024-05-20 12:14:38 +00:00
<div class="flex flex-wrap justify-center gap-4 mb-6">
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-check" text raised rounded aria-label="Filter" />
<Button icon="pi pi-bookmark" severity="secondary" text raised rounded aria-label="Bookmark" />
<Button icon="pi pi-search" severity="success" text raised rounded aria-label="Search" />
<Button icon="pi pi-user" severity="info" text raised rounded aria-label="User" />
2024-04-16 07:35:56 +00:00
<Button icon="pi pi-bell" severity="warn" text raised rounded aria-label="Notification" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-heart" severity="help" text raised rounded aria-label="Favorite" />
<Button icon="pi pi-times" severity="danger" text raised rounded aria-label="Cancel" />
2024-05-29 23:23:42 +00:00
<Button icon="pi pi-star" severity="contrast" text raised rounded aria-label="Star" />
2023-02-28 08:29:30 +00:00
</div>
2024-05-20 12:14:38 +00:00
<div class="flex flex-wrap justify-center gap-4">
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-check" text rounded aria-label="Filter" />
<Button icon="pi pi-bookmark" severity="secondary" text rounded aria-label="Bookmark" />
<Button icon="pi pi-search" severity="success" text rounded aria-label="Search" />
<Button icon="pi pi-user" severity="info" text rounded aria-label="User" />
2024-04-16 07:35:56 +00:00
<Button icon="pi pi-bell" severity="warn" text rounded aria-label="Notification" />
2023-03-03 07:04:07 +00:00
<Button icon="pi pi-heart" severity="help" text rounded aria-label="Favorite" />
<Button icon="pi pi-times" severity="danger" text rounded aria-label="Cancel" />
2024-05-29 23:23:42 +00:00
<Button icon="pi pi-star" severity="contrast" text rounded aria-label="Star" />
2023-02-28 08:29:30 +00:00
</div>
</div>
</template>
<script setup>
2023-10-15 09:38:39 +00:00
<\/script>
`
2023-02-28 08:29:30 +00:00
}
};
}
};
</script>