You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/react/components/buttons/AddButton.tsx

36 lines
714 B

import clsx from 'clsx';
import { PlusCircle } from 'lucide-react';
import { Icon } from '@/react/components/Icon';
import styles from './AddButton.module.css';
export interface Props {
className?: string;
label: string;
disabled?: boolean;
onClick: () => void;
}
export function AddButton({ label, onClick, className, disabled }: Props) {
return (
<button
className={clsx(
className,
'label',
'label-default',
'vertical-center',
'interactive',
'vertical-center',
styles.addButton
)}
type="button"
onClick={onClick}
disabled={disabled}
>
<Icon icon={PlusCircle} />
{label}
</button>
);
}