diff --git a/gradio/components/code.py b/gradio/components/code.py index a3bbbb2928d09..17bbbdb5448a8 100644 --- a/gradio/components/code.py +++ b/gradio/components/code.py @@ -75,8 +75,8 @@ def __init__( """ Parameters: value: Default value to show in the code editor. If callable, the function will be called whenever the app loads to set the initial value of the component. - every: If `value` is a callable, run the function 'every' number of seconds while the client connection is open. Has no effect otherwise. The event can be accessed (e.g. to cancel it) via this component's .load_event attribute. language: The language to display the code as. Supported languages listed in `gr.Code.languages`. + every: If `value` is a callable, run the function 'every' number of seconds while the client connection is open. Has no effect otherwise. The event can be accessed (e.g. to cancel it) via this component's .load_event attribute. label: The label for this component. Appears above the component and is also used as the header if there are a table of examples for this component. If None and used in a `gr.Interface`, the label will be the name of the parameter this component is assigned to. interactive: Whether user should be able to enter code or only view it. show_label: if True, will display label. diff --git a/js/code/README.md b/js/code/README.md index 06db3eb538efc..c991cff85905c 100644 --- a/js/code/README.md +++ b/js/code/README.md @@ -8,17 +8,14 @@ BaseCode ```javascript - export let classNames = ""; + export let class_names = ""; export let value = ""; export let dark_mode: boolean; - export let basic = true; export let language: string; export let lines = 5; export let extensions: Extension[] = []; - - export let useTab = true; - + export let use_tab = true; export let readonly = false; export let placeholder: string | HTMLElement | null | undefined = undefined; ``` diff --git a/js/code/shared/Code.svelte b/js/code/shared/Code.svelte index b262172459557..cd5ccb8942818 100644 --- a/js/code/shared/Code.svelte +++ b/js/code/shared/Code.svelte @@ -1,8 +1,8 @@