Skip to content

Commit

Permalink
feat(Tag): config redesign and implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Dec 8, 2023
1 parent be61382 commit fc4c890
Show file tree
Hide file tree
Showing 7 changed files with 660 additions and 292 deletions.
290 changes: 251 additions & 39 deletions src/plugins/components/tag/index.ts

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions src/plugins/components/tag/tag.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import * as variants from './tag.variants'
*/
export const Tag = ({
shadow,
shape = 'full',
rounded = 'full',
children,
flavor = 'solid',
variant = 'solid',
size = 'md',
color = 'default',
classes,
Expand All @@ -22,10 +22,10 @@ export const Tag = ({
class=${[
'nui-tag',
variants.size[size],
variants.flavor[flavor],
variants.variant[variant],
variants.color[color],
shape && variants.shape[shape],
shadow && flavor === 'solid' && variants.shadow[shadow],
rounded && variants.rounded[rounded],
shadow && variant === 'solid' && variants.shadow[shadow],
classes?.wrapper,
]
.filter(Boolean)
Expand Down
Loading

0 comments on commit fc4c890

Please sign in to comment.