mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
chore: add more prop annotations
This commit is contained in:
parent
8c1ffd4cb0
commit
773b18d314
75 changed files with 877 additions and 137 deletions
|
@ -14,6 +14,11 @@
|
|||
export let pageSizes = [10];
|
||||
export let pagesUnknown = false;
|
||||
export let pageText = page => `page ${page}`;
|
||||
|
||||
/**
|
||||
* Set an id for the top-level element
|
||||
* @type {string} [id]
|
||||
*/
|
||||
export let id = "ccs-" + Math.random().toString(36);
|
||||
|
||||
import CaretLeft24 from "carbon-icons-svelte/lib/CaretLeft24";
|
||||
|
@ -33,7 +38,7 @@
|
|||
$: forwardButtonDisabled = disabled || page === totalPages;
|
||||
</script>
|
||||
|
||||
<div class:bx--pagination={true} {...$$restProps}>
|
||||
<div {id} class:bx--pagination={true} {...$$restProps}>
|
||||
<div class:bx--pagination__left={true}>
|
||||
<label
|
||||
id="bx--pagination-select-{id}-count-label"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue