Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add interactive args to colorpicker * add changeset * add changeset * add colorpicker stories --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
- Loading branch information
1 parent
34f6b22
commit 1b017e6
Showing
5 changed files
with
43 additions
and
2 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,6 @@ | ||
--- | ||
"@gradio/colorpicker": patch | ||
"gradio": patch | ||
--- | ||
|
||
fix:Add `interactive` args to `gr.ColorPicker` |
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,30 @@ | ||
<script> | ||
import { Meta, Template, Story } from "@storybook/addon-svelte-csf"; | ||
import ColorPicker from "./static/StaticColorpicker.svelte"; | ||
</script> | ||
|
||
<Meta title="Components/Color Picker" component={ColorPicker} argTypes={{}} /> | ||
|
||
<Template let:args> | ||
<ColorPicker value="Color Picker" {...args} /> | ||
</Template> | ||
|
||
<Story name="Default" /> | ||
<Story | ||
name="Color Picker with a color value and hidden label" | ||
args={{ value: "#FFC0CB", show_label: false }} | ||
/> | ||
<Story | ||
name="Color Picker with a color value and label" | ||
args={{ value: "#FFC0CB", label: "This is a neat color" }} | ||
/> | ||
|
||
<Story | ||
name="Disabled color picker" | ||
args={{ value: "#FFC0CB", interactive: false }} | ||
/> | ||
|
||
<Story | ||
name="Color Picker with a color value and info" | ||
args={{ value: "#FFC0CB", info: "This is a neat color" }} | ||
/> |
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
1b017e6
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-git-main-hugging-face.vercel.app
gradio-two.vercel.app
gradio-hugging-face.vercel.app
gradio.app
www.gradio.app