flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS
15 lines (11 loc) • 439 B
JavaScript
;
var React = require('react');
const ButtonBase = React.forwardRef(
({ children, as: Component, href, type = "button", ...props }, ref) => {
const BaseComponent = Component || (href ? "a" : "button");
return React.createElement(BaseComponent, { ref, href, type, ...props }, children);
}
);
ButtonBase.displayName = "ButtonBaseComponent";
exports.ButtonBase = ButtonBase;
//# sourceMappingURL=ButtonBase.cjs.map