@iminside/react-yandex-maps
Version:
Yandex.Maps API bindings for React
44 lines (43 loc) • 1.66 kB
TypeScript
import React from 'react';
import { WithYMapsProps } from '../hocs/withYMaps';
import { BaseControlProps } from './BaseControl';
import { control } from 'yandex-maps';
import { AnyObject, WithInstanceRef } from '../util/typing';
import { ErrorBoundaryProps } from '../hocs/with-error-boundary';
interface RoutePanelProps extends Omit<BaseControlProps, 'name'> {
/**
* Control [options](https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/control.RoutePanel-docpage/#control.RoutePanel__param-parameters.options)
*/
options?: control.IRoutePanelParameters['options'];
/**
* Uncontrolled control [options](https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/control.RoutePanel-docpage/#control.RoutePanel__param-parameters.options)
*/
defaultOptions?: control.IRoutePanelParameters['options'];
/**
* Control [state](https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/control.RoutePanel-docpage/#control.RoutePanel__param-parameters.state)
*/
state?: control.IRoutePanelParameters['state'];
/**
* Uncontrolled control [state](https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/control.RoutePanel-docpage/#control.RoutePanel__param-parameters.state)
*/
defaultState?: control.IRoutePanelParameters['state'];
}
export declare const RoutePanel: React.FC<
React.PropsWithChildren<
RoutePanelProps &
WithYMapsProps &
WithInstanceRef &
ErrorBoundaryProps &
AnyObject
>
>;
declare const _default: React.FC<
React.PropsWithChildren<
RoutePanelProps &
WithYMapsProps &
WithInstanceRef &
ErrorBoundaryProps &
AnyObject
>
>;
export default _default;