This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
skynet-webportal/packages/website/src/components/Underline.js

15 lines
346 B
JavaScript

export default function Underline({ children, color, size }) {
return (
<span
style={{
backgroundImage: `linear-gradient(to bottom, ${color}, ${color})`,
backgroundPosition: "0 1.1rem",
backgroundRepeat: "repeat-x",
backgroundSize: `${size} ${size}`,
}}
>
{children}
</span>
);
}