Skip to content

Commit

Permalink
docs(Field.Number): add allowNegative demo/example (#3754)
Browse files Browse the repository at this point in the history
Adds a demo/example to the following feature
#3753
  • Loading branch information
langz authored Jul 5, 2024
1 parent 9dc1358 commit d6d3dbd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,14 @@ export const ValidateMinimum = () => {
)
}

export const AllowNegative = () => {
return (
<ComponentBox>
<Field.Number allowNegative={false} />
</ComponentBox>
)
}

export const Percentage = () => {
return (
<ComponentBox>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ import * as Examples from './Examples'

<Examples.Percentage />

### Allow Negative

<Examples.AllowNegative />

### Widths

<Examples.Widths />
Expand Down

0 comments on commit d6d3dbd

Please sign in to comment.