hoda-react
Version:
<div align="center"> <h1>:construction: flowbite-react (unreleased) :construction:</h1> <p> <a href="https://flowbite-react.com"> <img alt="Flowbite - Tailwind CSS components" width="350" src=".github/assets/flowbite-react-github.png"> <
11 lines (10 loc) • 464 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import classNames from 'classnames';
import { useTheme } from '../Flowbite/ThemeContext';
const PaginationButton = ({ active, onClick, children, className }) => {
const theme = useTheme().theme.pagination;
return (_jsx("button", { className: classNames({
[theme.pages.selector.active]: active,
}, className), onClick: onClick, children: children }));
};
export default PaginationButton;