Skip to content

Commit

Permalink
feat(Input): 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 07b4293 commit 80b45fb
Show file tree
Hide file tree
Showing 7 changed files with 549 additions and 248 deletions.
253 changes: 195 additions & 58 deletions src/plugins/components/input/index.ts

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/plugins/components/input/input.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import * as variants from './input.variants'
*/
export const Input = ({
id,
shape = 'rounded',
rounded = 'sm',
size = 'md',
contrast = 'default',
label,
Expand All @@ -35,7 +35,7 @@ export const Input = ({
'nui-input-wrapper',
contrast && variants.contrast[contrast],
size && variants.size[size],
shape && variants.shape[shape],
rounded && variants.rounded[rounded],
error && !loading && 'nui-input-error',
loading && 'nui-input-loading',
labelFloat && 'nui-input-label-float',
Expand Down
Loading

0 comments on commit 80b45fb

Please sign in to comment.