diff --git a/apps/docs/docs/learn/06-recipes/02-variants.mdx b/apps/docs/docs/learn/06-recipes/02-variants.mdx index e84f6edf..677cb92b 100644 --- a/apps/docs/docs/learn/06-recipes/02-variants.mdx +++ b/apps/docs/docs/learn/06-recipes/02-variants.mdx @@ -21,6 +21,12 @@ Here’s how you can create a button component with different visual styles base import * as stylex from '@stylexjs/stylex'; const styles = stylex.create({ + base: { + appearance: 'none', + borderWidth: 0, + }, +}); +const variants = stylex.create({ primary: { backgroundColor: { default: 'blue', @@ -36,9 +42,8 @@ const styles = stylex.create({ color: 'white', }, }); - function Button({ variant = 'primary', ...props }) { - return