import type { FC } from 'react' import type { ExtractProps } from '../types' import { Label } from '@headlessui/react' import classNames from 'classnames' import React, { Fragment } from 'react' import { Typography } from '../typography' export type SelectLabelProps = ExtractProps & { children: string standalone?: boolean } const SelectLabel: FC = ({ className, children, standalone, ...props }) => { return React.createElement( standalone ? 'div' : Label, { ...props, as: Fragment, }, {children} , ) } export default SelectLabel