diff --git a/docs/content/5.navigation/3.pagination.md b/docs/content/5.navigation/3.pagination.md index be2ecca5..41bd1b43 100644 --- a/docs/content/5.navigation/3.pagination.md +++ b/docs/content/5.navigation/3.pagination.md @@ -46,6 +46,22 @@ props: --- :: +### Disabled :u-badge{label="New" class="align-middle ml-2 !rounded-full" variant="subtle"} + +Use the `disabled` prop to disable all the buttons. + +::component-card +--- +baseProps: + modelValue: 1 + total: 100 + showLast: true + showFirst: true +props: + disabled: true +--- +:: + ### Active / Inactive Use the `active-button` and `inactive-button` props to customize the active and inactive buttons of the Pagination. diff --git a/src/runtime/components/navigation/Pagination.vue b/src/runtime/components/navigation/Pagination.vue index 2d6b3644..0d3f202f 100644 --- a/src/runtime/components/navigation/Pagination.vue +++ b/src/runtime/components/navigation/Pagination.vue @@ -4,7 +4,7 @@ = 5 && value < Number.MAX_VALUE } }, + disabled: { + type: Boolean, + default: false + }, size: { type: String as PropType, default: () => config.default.size,