import type { SegmentedProps, SpaceProps } from 'antd'; import { Form, Segmented as AntSegmented } from 'antd'; import type { BaseElementProps, BaseOption } from './types'; const { Item: FormItem } = Form; type ElementProps = BaseElementProps & { options: BaseOption[]; spaceProps?: SpaceProps; style: SegmentedProps['style']; }; export default function Segmented({ value, setValue, options, status, isValid, help, spaceProps, style, ...props }: ElementProps) { return ( ); } export { type SegmentedProps } from 'antd';