Skip to content

Commit

Permalink
feat(IconBox): config redesign and implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Dec 7, 2023
1 parent 1203446 commit 07b4293
Show file tree
Hide file tree
Showing 7 changed files with 817 additions and 300 deletions.
10 changes: 5 additions & 5 deletions src/plugins/components/icon-box/icon-box.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import * as variants from './icon-box.variants'
* Primary UI component for user interaction
*/
export const IconBox = ({
shape = 'full',
rounded = 'full',
children,
flavor = 'solid',
variant = 'solid',
size = 'md',
color = 'default',
bordered,
Expand All @@ -24,11 +24,11 @@ export const IconBox = ({
class=${[
'nui-icon-box',
variants.size[size],
variants.flavor[flavor],
variants.variant[variant],
variants.color[color],
bordered && 'nui-box-bordered',
shape && variants.shape[shape],
shape === 'straight' && mask && `nui-box-mask ${variants.mask[mask]}`,
rounded && variants.rounded[rounded],
rounded === 'none' && mask && `nui-box-mask ${variants.mask[mask]}`,
classes?.wrapper,
]
.filter(Boolean)
Expand Down
Loading

0 comments on commit 07b4293

Please sign in to comment.