Skip to content

Commit

Permalink
feat(Button): rename shape to rounded and flavor to variant
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Dec 4, 2023
1 parent 05aae30 commit e104b7a
Show file tree
Hide file tree
Showing 5 changed files with 141 additions and 141 deletions.
8 changes: 4 additions & 4 deletions src/plugins/components/button/button.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ export const Button = ({
label,
loading,
shadow,
shape,
rounded,
children,
flavor = 'solid',
variant = 'solid',
size = 'md',
color = 'default',
classes,
Expand All @@ -25,10 +25,10 @@ export const Button = ({
class=${[
'nui-button',
variants.size[size],
variants.flavor[flavor],
variants.variant[variant],
variants.color[color],
loading && 'nui-button-loading',
shape && variants.shape[shape],
rounded && variants.rounded[rounded],
shadow && variants.shadow[shadow],
classes?.wrapper,
]
Expand Down
12 changes: 6 additions & 6 deletions src/plugins/components/button/button.docs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ Size allows you to change the size of the button.

<br />

### Flavor: solid
### Variants: solid

Flavors represent the visual styles applied to a button. Below are examples of the solid flavor.
Variantss represent the visual styles applied to a button. Below are examples of the solid flavor.

<div className="flex gap-2 bg-slate-100 dark:bg-slate-900 p-6 rounded-sm">
<Story of={ButtonStories.SolidDefault} />
Expand All @@ -60,9 +60,9 @@ Flavors represent the visual styles applied to a button. Below are examples of t

<br />

### Flavor: pastel
### Variants: pastel

Flavors represent the visual styles applied to a button. Below are examples of the pastel flavor.
Variantss represent the visual styles applied to a button. Below are examples of the pastel flavor.

<div className="flex gap-2 bg-slate-100 dark:bg-slate-900 p-6 rounded-sm">
<Story of={ButtonStories.PastelPrimary} />
Expand All @@ -74,9 +74,9 @@ Flavors represent the visual styles applied to a button. Below are examples of t

<br />

### Flavor: outline
### Variants: outline

Flavors represent the visual styles applied to a button. Below are examples of the outline flavor.
Variantss represent the visual styles applied to a button. Below are examples of the outline flavor.

<div className="flex gap-2 bg-slate-100 dark:bg-slate-900 p-6 rounded-sm">
<Story of={ButtonStories.OutlinePrimary} />
Expand Down
Loading

0 comments on commit e104b7a

Please sign in to comment.