class_docstr: Button that redirects the user to Sign with Hugging Face using OAuth.
class_docstr_tok: ["Button","that","redirects","the","user","to","Sign","with","Hugging","Face","using","OAuth","."]
docstr: Parameters:
      signed_in_value: The text to display when the user is signed in. The string should contain a placeholder for the username, e.g. "Signed in as {}".
docstr_tok: ["Parameters",":","signed_in_value",":","The","text","to","display","when","the","user","is","signed","in",".","The","string","should","contain","a","placeholder","for","the","username",",","e.g",".","``","Signed","in","as","{","}","''","."]
code: def __init__(
      self,
      value: str = "Sign in with Hugging Face",
      signed_in_value: str = "Signed in as {}",
      *,
      every: float | None = None,
      variant: Literal["primary", "secondary", "stop"] = "secondary",
      size: Literal["sm", "lg"] | None = None,
      icon: str
      | None = "https://huggingface.co/front/assets/huggingface_logo-noborder.svg",
      link: str | None = None,
      visible: bool = True,
      interactive: bool = True,
      elem_id: str | None = None,
      elem_classes: list[str] | str | None = None,
      render: bool = True,
      scale: int | None = 0,
      min_width: int | None = None,
  ):
      """
      Parameters:
          signed_in_value: The text to display when the user is signed in. The string should contain a placeholder for the username, e.g. "Signed in as {}".
      """
      if signed_in_value is None:
          signed_in_value = "Signed in as {}"
      self.signed_in_value = signed_in_value
      super().__init__(
          value,
          every=every,
          variant=variant,
          size=size,
          icon=icon,
          link=link,
          visible=visible,
          interactive=interactive,
          elem_id=elem_id,
          elem_classes=elem_classes,
          render=render,
          scale=scale,
          min_width=min_width,
      )
      if Context.root_block:
          self.activate()
      else:
          warnings.warn(
              "LoginButton created outside of a Blocks context. May not work unless you call its `activate()` method manually."
          )
  
file_path: gradio/gradio/components/login_button.py
imports: from __future__ import annotations
  import warnings
  from typing import Literal
  from gradio_client.documentation import document, set_documentation_group
  from gradio.components import Button
  from gradio.context import Context
  from gradio.routes import Request
label_desc: Use image node_id 1 to create a new LoginButton object from inherited base classes: Button with example: obj = LoginButton(value, signed_in_value)