You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
534 B
17 lines
534 B
import * as React from 'react';
|
|
import usePlaceholder from './usePlaceholder';
|
|
import PlaceholderButton from './PlaceholderButton';
|
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
const Placeholder = /*#__PURE__*/React.forwardRef(({
|
|
as: Component = 'span',
|
|
...props
|
|
}, ref) => {
|
|
const placeholderProps = usePlaceholder(props);
|
|
return /*#__PURE__*/_jsx(Component, { ...placeholderProps,
|
|
ref: ref
|
|
});
|
|
});
|
|
Placeholder.displayName = 'Placeholder';
|
|
export default Object.assign(Placeholder, {
|
|
Button: PlaceholderButton
|
|
}); |