Skip to content

Commit 5793376

Browse files
authored
[docs] Fix components variants example
The displayed example component is a secondary button, yet the specified example theme doesn't have a secondary variant for buttons defined, which is incongruent. This fixes it by renaming the variant defined in the example theme
1 parent b0257f0 commit 5793376

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/docs/src/pages/components/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ Each component accepts a `variant` prop to quickly
3333
change custom stylistic variations that you define.
3434

3535
```js
36-
// example theme
3736
{
38-
// base theme...
37+
// ...base theme...
38+
// After the base theme, define the variants:
3939
buttons: {
40-
primary: {
40+
secondary: {
4141
fontWeight: 'bold',
4242
color: 'white',
4343
bg: 'primary',

0 commit comments

Comments
 (0)