
    Fg'                        S r SSKJr  SSKJrJr  SSKJrJr  SSK	J
r
  SSKJr  SSKJr  \(       a  SSKJr  \
" 5        " S	 S
\5      5       rg)zgr.HTML() component.    )annotations)CallableSequence)TYPE_CHECKINGAny)document)	Component)Events)Timerc                     ^  \ rS rSrSr\R                  \R                  /r SSSSSSSSSSSSSSS.                           SU 4S jjjjr	SS jr
SS	 jrSS
 jrSS jrSS jrSrU =r$ )HTML   z
Creates a component to display arbitrary HTML output. As this component does not accept user input, it is rarely used as an input component.

Demos: blocks_scroll
Guides: key-features
NFT)labeleveryinputs
show_labelvisibleelem_idelem_classesrenderkey
min_height
max_height	containerpaddingc               X   > Xl         Xl        Xl        [        TU ]  UUUUUUUU	U
UUS9  g)a/	  
Parameters:
    value: The HTML content to display. Only static HTML is rendered (e.g. no JavaScript. To render JavaScript, use the `js` or `head` parameters in the `Blocks` constructor). If a function is provided, the function will be called each time the app loads to set the initial value of this component.
    label: The label for this component. Is 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.
    every: Continously calls `value` to recalculate it if `value` is a function (has no effect otherwise). Can provide a Timer whose tick resets `value`, or a float that provides the regular interval for the reset Timer.
    inputs: Components that are used as inputs to calculate `value` if `value` is a function (has no effect otherwise). `value` is recalculated any time the inputs change.
    show_label: If True, the label will be displayed. If False, the label will be hidden.
    visible: If False, component will be hidden.
    elem_id: An optional string that is assigned as the id of this component in the HTML DOM. Can be used for targeting CSS styles.
    elem_classes: An optional list of strings that are assigned as the classes of this component in the HTML DOM. Can be used for targeting CSS styles.
    render: If False, component will not render be rendered in the Blocks context. Should be used if the intention is to assign event listeners now but render the component later.
    key: if assigned, will be used to assume identity across a re-render. Components that have the same key across a re-render will have their value preserved.
    min_height: The minimum height of the component, specified in pixels if a number is passed, or in CSS units if a string is passed. If HTML content exceeds the height, the component will expand to fit the content.
    max_height: The maximum height of the component, specified in pixels if a number is passed, or in CSS units if a string is passed. If content exceeds the height, the component will scroll.
    container: If True, the HTML component will be displayed in a container. Default is False.
    padding: If True, the HTML component will have a certain padding (set by the `--block-padding` CSS variable) in all directions. Default is True.
)r   r   r   r   r   r   r   r   r   valuer   N)r   r   r   super__init__)selfr   r   r   r   r   r   r   r   r   r   r   r   r   r   	__class__s                  g/Users/admin/workspace/ai/PDFMathTranslate/myenv/lib/python3.13/site-packages/gradio/components/html.pyr   HTML.__init__   sH    F %$!% 	 	
    c                    gNz<p>Hello</p> r    s    r"   example_payloadHTML.example_payloadP       r$   c                    gr&   r'   r(   s    r"   example_valueHTML.example_valueS   r+   r$   c                    U$ )zr
Parameters:
    payload: string corresponding to the HTML
Returns:
    (Rarely used) passes the HTML as a `str`.
r'   )r    payloads     r"   
preprocessHTML.preprocessV   s	     r$   c                    U$ )zh
Parameters:
    value: Expects a `str` consisting of valid HTML.
Returns:
    Returns the HTML string.
r'   )r    r   s     r"   postprocessHTML.postprocess_   s	     r$   c                
    SS0$ )Ntypestringr'   r(   s    r"   api_infoHTML.api_infoh   s    !!r$   )r   r   r   )N)r   zstr | Callable | Noner   
str | Noner   zTimer | float | Noner   z7Component | Sequence[Component] | set[Component] | Noner   boolr   r<   r   r;   r   zlist[str] | str | Noner   r<   r   zint | str | Noner   
int | Noner   r=   r   r<   r   r<   )returnr   )r0   r;   r>   r;   )r   r;   r>   r;   )r>   zdict[str, Any])__name__
__module____qualname____firstlineno____doc__r
   changeclickEVENTSr   r)   r-   r1   r4   r9   __static_attributes____classcell__)r!   s   @r"   r   r      s    mmV\\*F (,2
 !&*JN "/3 $!%!%!2
$2
 	2

 $2
 H2
 2
 2
 2
 -2
 2
 2
 2
 2
 2
  !2
 2
h" "r$   r   N)rC   
__future__r   collections.abcr   r   typingr   r   gradio_client.documentationr   gradio.components.baser	   gradio.eventsr
   gradio.componentsr   r   r'   r$   r"   <module>rP      s@     " . % 0 ,  ' 
W"9 W" W"r$   