From 3ec287e2f935be0628d57680e3176233ad8e0be6 Mon Sep 17 00:00:00 2001 From: Lachlan Campbell Date: Mon, 8 Feb 2021 11:33:53 -0500 Subject: [PATCH 1/2] docs(variants): Clearly explain variant notation --- packages/docs/src/pages/guides/variants.mdx | 23 +++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/packages/docs/src/pages/guides/variants.mdx b/packages/docs/src/pages/guides/variants.mdx index 9104da83c..0a4ecd407 100644 --- a/packages/docs/src/pages/guides/variants.mdx +++ b/packages/docs/src/pages/guides/variants.mdx @@ -30,21 +30,40 @@ For example, you can define `primary` and `secondary` variants for buttons and u } ``` -With the `theme` object above, the `buttons` variants can be referenced in the `sx` prop. +With the `theme` object above, the `buttons` variants can be referenced by any tag through the `sx` prop. ```jsx