Skip to content

How to use variants with Box, Flex, etc.? #2011

Answered by lachlanjc
TranquilMarmot asked this question in Q&A
Discussion options

You must be logged in to vote

Ah, we should totally make this clearer! If there's no theme key, that means you can use any variant from anywhere in the theme, but it needs a category prefix. E.g. you can write <Grid variant="cards.sunken" to make a Grid look like a Card, or variant="layout.container" to add Container's styling. (See the former in use here.)

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@lachlanjc
Comment options

@CamilleHbp
Comment options

@CamilleHbp
Comment options

@lachlanjc
Comment options

@CamilleHbp
Comment options

Answer selected by lachlanjc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2010 on November 13, 2021 20:00.