11 lines
338 B
TypeScript
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} />;
|
|
}
|