UNPKG

492 BJavaScriptView Raw
1import * as React from 'react';
2import Button from './Button';
3import usePlaceholder from './usePlaceholder';
4import { jsx as _jsx } from "react/jsx-runtime";
5const PlaceholderButton = /*#__PURE__*/React.forwardRef((props, ref) => {
6 const placeholderProps = usePlaceholder(props);
7 return /*#__PURE__*/_jsx(Button, {
8 ...placeholderProps,
9 ref: ref,
10 disabled: true,
11 tabIndex: -1
12 });
13});
14PlaceholderButton.displayName = 'PlaceholderButton';
15export default PlaceholderButton;
\No newline at end of file