import clsx from "clsx"; import React from "react"; import { BaseProps } from "../../types"; import styles from "./styles.module.scss"; export type InputGroupProps = { input: React.ReactNode; startDecorator?: React.ReactNode; endDecorator?: React.ReactNode; } & BaseProps; export function InputGroup({ input, startDecorator, endDecorator, style, className, }: InputGroupProps) { return (
{startDecorator && ( {startDecorator} )} {input} {endDecorator && ( {endDecorator} )}
); }