UNPKG

@pandacss/studio

Version:

The automated token documentation for Panda CSS

22 lines (19 loc) 544 B
import { getPatternStyles, patternFns } from '../helpers.mjs'; import { css } from '../css/index.mjs'; const linkBoxConfig = { transform(props) { return { position: "relative", "& :where(a, abbr)": { position: "relative", zIndex: "1" }, ...props }; }} export const getLinkBoxStyle = (styles = {}) => { const _styles = getPatternStyles(linkBoxConfig, styles) return linkBoxConfig.transform(_styles, patternFns) } export const linkBox = (styles) => css(getLinkBoxStyle(styles)) linkBox.raw = getLinkBoxStyle