15 lines
261 B
TypeScript
15 lines
261 B
TypeScript
import { PopoverText } from "./popover-text";
|
|
|
|
export const FloatingLabel = ({
|
|
placeholder,
|
|
children
|
|
}: {
|
|
placeholder: string;
|
|
children: React.ReactNode;
|
|
}) => {
|
|
return (
|
|
<PopoverText text={placeholder}>
|
|
{children}
|
|
</PopoverText>
|
|
);
|
|
}; |