Skip to content
Discussion options

You must be logged in to vote

Ah got it, then you only need to add those to the gap group. gap-x is for the CSS property column-gap and gap-y for row-gap.

import { extendTailwindMerge } from 'tailwind-merge'

const twMerge = extendTailwindMerge({
  extend: {
    classGroups: {
      gap: [{ gap: ['surface'], spacing: ['xs', 'sm', 'base', 'lg'] }],
    },
  },
})

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rettimo
Comment options

@dcastil
Comment options

Answer selected by rettimo
@rettimo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
context-v3 Related to tailwind-merge v3
2 participants