@totalsoft/rocket-ui
Version:
A set of reusable and composable React components built on top of Material UI core for developing fast and friendly web applications interfaces.
23 lines (20 loc) • 607 B
text/typescript
// Copyright (c) TotalSoft.
// This source code is licensed under the MIT license.
import { NavigateOptions } from 'react-router'
import { IconButtonProps } from '../IconButton/types'
export interface BackToButtonProps extends Omit<IconButtonProps, 'type'> {
/**
* Path where browser will be directed to when the button is clicked.
*/
path: string | number
/**
* Navigation options.
* flushSync?: boolean;
* preventScrollReset?: boolean;
* relative?: RelativeRoutingType;
* replace?: boolean;
* state?: any;
* viewTransition?: boolean;
*/
options?: NavigateOptions
}