react95
Version:
Refreshed Windows95 UI components for modern web apps - React95
18 lines (15 loc) • 570 B
JavaScript
import React__default, { forwardRef } from 'react';
import styled from 'styled-components';
const StyledAnchor = styled.a`
color: ${({ theme }) => theme.anchor};
font-size: inherit;
text-decoration: ${({ underline }) => underline ? "underline" : "none"};
&:visited {
color: ${({ theme }) => theme.anchorVisited};
}
`;
const Anchor = forwardRef(({ children, underline = true, ...otherProps }, ref) => {
return React__default.createElement(StyledAnchor, { ref, underline, ...otherProps }, children);
});
Anchor.displayName = "Anchor";
export { Anchor };