@awsui/components-react
Version:
AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A
14 lines (13 loc) • 1.17 kB
JavaScript
import React from 'react';
import clsx from 'clsx';
import Button from '../button';
import SpaceBetween from '../space-between';
import styles from './styles.css.js';
var WizardActions = function (_a) {
var cancelButtonText = _a.cancelButtonText, primaryButtonText = _a.primaryButtonText, previousButtonText = _a.previousButtonText, onCancelClick = _a.onCancelClick, onPreviousClick = _a.onPreviousClick, onPrimaryClick = _a.onPrimaryClick, showPrevious = _a.showPrevious, isPrimaryLoading = _a.isPrimaryLoading;
return (React.createElement(SpaceBetween, { direction: "horizontal", size: "xs" },
React.createElement(Button, { className: clsx(styles['cancel-button']), variant: "link", formAction: "none", onClick: onCancelClick }, cancelButtonText),
showPrevious && (React.createElement(Button, { className: clsx(styles['previous-button']), onClick: onPreviousClick, formAction: "none" }, previousButtonText)),
React.createElement(Button, { className: clsx(styles['primary-button']), variant: "primary", formAction: "none", onClick: onPrimaryClick, loading: isPrimaryLoading }, primaryButtonText)));
};
export default WizardActions;