2023-05-16 12:03:54 +03:00

11 lines
338 B
TypeScript

import type { SegmentedProps } from 'antd';
import { Segmented as AntSegmented } from 'antd';
type ElementProps = Omit<SegmentedProps, 'options' | 'ref'> & {
options?: SegmentedProps['options'];
};
export default function Segmented({ options = [], ...props }: ElementProps) {
return <AntSegmented {...props} options={options} />;
}