Skip to content

Instantly share code, notes, and snippets.

Created April 7, 2023 00:10
What would you like to do?
Extend a styled component as a different HTML element
import styled from 'styled-components';
interface ButtonProps {
// Props to be used for styling below
export const StyledButton = styled.button<ButtonProps>`
// Styles
&:hover, &:focus, &:active {
// Styles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment