The communications platform that puts data protection first.
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.
 
 
 
 
 
Rocket.Chat/client/components/basic/Button.js

27 lines
484 B

import React from 'react';
export const Button = ({
children,
className,
invisible,
primary,
secondary,
cancel,
nude,
submit,
...props
}) => <button
type={(submit && 'submit') || 'button'}
className={[
'rc-button',
primary && 'rc-button--primary',
secondary && 'rc-button--secondary',
invisible && 'rc-button--invisible',
cancel && 'rc-button--cancel',
nude && 'rc-button--nude',
className,
].filter(Boolean).join(' ')}
{...props}
>
{children}
</button>;