Success Button Component
Overview
A button with a green background, symbolizing a successful or positive action, like "Save" or "Submit".
preview
JSX
HTML
css
index.jsx
export const SuccessButton = () => (
<button className="btn success">Success</button>
);
index.html
<button class="btn success">Success</button>
styles.css
.btn {
padding: 10px 20px;
border-radius: 4px;
border: none;
font-size: 16px;
cursor: pointer;
transition: all 0.2s ease-in-out;
}
.btn.secondary {
background-color: #dc3545;
color: white;
}
.btn.secondary:hover {
filter: brightness(1.1);
}
.btn.secondary:active {
filter: brightness(0.9);
transform: scale(0.9);
}