MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / Pagination

Function Pagination

src/Pagination.js:23–49  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

21};
22
23function Pagination(props) {
24 const {
25 className,
26 listClassName,
27 cssModule,
28 size,
29 tag: Tag = 'nav',
30 listTag: ListTag = 'ul',
31 'aria-label': label = 'pagination',
32 ...attributes
33 } = props;
34
35 const classes = mapToCssModules(classNames(className), cssModule);
36
37 const listClasses = mapToCssModules(
38 classNames(listClassName, 'pagination', {
39 [`pagination-${size}`]: !!size,
40 }),
41 cssModule,
42 );
43
44 return (
45 <Tag className={classes} aria-label={label}>
46 <ListTag {...attributes} className={listClasses} />
47 </Tag>
48 );
49}
50
51Pagination.propTypes = propTypes;
52

Callers

nothing calls this directly

Calls 1

mapToCssModulesFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…