-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add step param to number component * add changeset * fix test * fix BE test * fix test again * update number.py * fix test * test fix --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
- Loading branch information
1 parent
6693660
commit 883ac36
Showing
6 changed files
with
84 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@gradio/app": minor | ||
"@gradio/form": minor | ||
"gradio": minor | ||
--- | ||
|
||
feat:Add `step` param to `Number` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<script> | ||
import { Meta, Template, Story } from "@storybook/addon-svelte-csf"; | ||
import Number from "./Number.svelte"; | ||
</script> | ||
|
||
<Meta title="Components/Number" component={Number} /> | ||
|
||
<Template let:args> | ||
<Number {...args} /> | ||
</Template> | ||
|
||
<Story | ||
name="Number with min 0 and max 100" | ||
args={{ | ||
minimum: 0, | ||
maximum: 100, | ||
}} | ||
/> | ||
|
||
<Story | ||
name="Number with step of 10" | ||
args={{ | ||
step: 10, | ||
}} | ||
/> | ||
|
||
<Story | ||
name="Number in disabled state" | ||
args={{ | ||
mode: "static", | ||
}} | ||
/> | ||
|
||
<Story | ||
name="Number with hidden label" | ||
args={{ | ||
show_label: false, | ||
}} | ||
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
883ac36
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
gradio – ./
gradio-hugging-face.vercel.app
gradio-git-main-hugging-face.vercel.app
gradio-two.vercel.app
www.gradio.app
gradio.app