Skip to content

Instantly share code, notes, and snippets.

@doubleedesign
Created April 7, 2023 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doubleedesign/ac60347586d35a6c4e341a1678318fdb to your computer and use it in GitHub Desktop.
Save doubleedesign/ac60347586d35a6c4e341a1678318fdb to your computer and use it in GitHub Desktop.
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