/* * Copyright (c) 2022 Nordic Semiconductor ASA * * SPDX-License-Identifier: LicenseRef-Nordic-4-Clause */ import React from 'react'; import classNames from '../utils/classNames'; export type ButtonVariants = | 'primary' | 'primary-outline' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'link-button'; type ButtonSize = 'sm' | 'lg' | 'xl'; type PickedButtonProps = | 'ref' | 'key' | 'className' | 'disabled' | 'onClick' | 'title'; interface ButtonProps extends Pick, PickedButtonProps> { variant: ButtonVariants; size?: ButtonSize; } const Button: React.FC = ({ children, className, variant, size = 'sm', ...attrs }) => ( ); export default Button;