TypeScript code snippet – How to use in styled components the same settings of another element?
import styled, { css } from ‘styled-components’; const baseInputStyles = css` padding: 0.5em; `; const StyledA = styled.a` ${baseInputStyles} `; const StyledButton = styled.button` ${baseInputStyles} /* make changes as needed*/ `;