UNPKG

fui-fancyui

Version:
15 lines (14 loc) 445 B
import i from "styled-components"; import { generateGradient as r } from "./utils/generateGradient.js"; const d = i.span` background: ${({ $degree: t, $colors: e, $orientation: o, $position: n }) => r({ degree: t, colors: e, orientation: o, position: n })}; background-clip: text; width: fit-content; height: fit-content; -webkit-background-clip: text; color: transparent; display: inline-block; `; export { d as GradientText };