Merged in feat/sw-3247-move-table-to-design-system (pull request #2636)
feat(SW-3247): Move Table component to design-system * Move Table component to design-system Approved-by: Bianca Widstam
This commit is contained in:
27
packages/design-system/lib/components/Table/variants.ts
Normal file
27
packages/design-system/lib/components/Table/variants.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import { cva } from 'class-variance-authority'
|
||||
|
||||
import styles from './table.module.css'
|
||||
|
||||
export const tableVariants = cva(styles.table, {
|
||||
variants: {
|
||||
intent: {
|
||||
light: styles.light,
|
||||
striped: styles.striped,
|
||||
},
|
||||
variant: {
|
||||
content: styles.content,
|
||||
},
|
||||
borderRadius: {
|
||||
none: '',
|
||||
small: styles.smallRadius,
|
||||
medium: styles.mediumRadius,
|
||||
large: styles.largeRadius,
|
||||
},
|
||||
layout: {
|
||||
fixed: styles.fixed,
|
||||
},
|
||||
},
|
||||
defaultVariants: {
|
||||
borderRadius: 'medium',
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user