Files
web/packages/design-system/lib/components/BackToTopButton/variants.ts
Anton Gunnarsson 03c9244fdf Merged in feat/sw-2873-move-backtotopbutton-to-design-system (pull request #2593)
feat(SW-2873): Move BackToTopButton to design-system

* Remove dependency on i18n in BackToTopButton

* Move BackToTopButton to design-system


Approved-by: Hrishikesh Vaipurkar
2025-08-05 08:41:31 +00:00

17 lines
343 B
TypeScript

import { cva } from 'class-variance-authority'
import styles from './backToTopButton.module.css'
export const backToTopButtonVariants = cva(styles.backToTopButton, {
variants: {
position: {
left: styles.left,
right: styles.right,
center: styles.center,
},
},
defaultVariants: {
position: 'right',
},
})