dash_mp_components.Link¶

class dash_mp_components.Link(children: str | int | float | Component | None | Sequence[str | int | float | Component | None] = None, href: str | None = None, target: str | None = None, refresh: bool | None = None, title: str | None = None, className: str | None = None, style: Any | None = None, id: str | dict | None = None, loading_state: LoadingState | None = None, preserveQuery: bool | None = None, **kwargs)[source]¶

Bases: Component

A Link component. Custom Link component that can handle both internal and external URLs. You can also use this component if you need to preserve the url query parameters when following a link.

Keyword arguments:

  • children (a list of or a singular dash component, string or number; optional):

    The children of this component.

  • id (string; optional):

    The ID of this component, used to identify dash components in callbacks. The ID needs to be unique across all of the components in an app.

  • className (string; optional):

    Often used with CSS to style elements with common properties.

  • href (string; required):

    The URL of a linked resource.

  • loading_state (dict; optional):

    Object that holds the loading state object coming from dash-renderer.

    loading_state is a dict with keys:

    • is_loading (boolean; optional):

      Determines if the component is loading or not.

    • prop_name (string; optional):

      Holds which property is loading.

    • component_name (string; optional):

      Holds the name of the component that is loading.

  • preserveQuery (boolean; optional):

    If True, the current query parameters will not be removed from the url when following the link.

  • refresh (boolean; optional):

    Controls whether or not the page will refresh when the link is clicked.

  • target (string; optional):

    Specifies where to open the link reference.

  • title (string; optional):

    Adds the title attribute to your link, which can contain supplementary information.

__init__(children: str | int | float | Component | None | Sequence[str | int | float | Component | None] = None, href: str | None = None, target: str | None = None, refresh: bool | None = None, title: str | None = None, className: str | None = None, style: Any | None = None, id: str | dict | None = None, loading_state: LoadingState | None = None, preserveQuery: bool | None = None, **kwargs)¶

Methods

__init__([children, href, target, refresh, ...])

to_plotly_json()

Attributes

REQUIRED

UNDEFINED

available_wildcard_properties

class LoadingState¶

Bases: TypedDict

dash-mp-components

Navigation

  • dash_mp_components
    • JsonView
    • MatSidebar
    • CameraContextProvider
    • CrystalToolkitAnimationScene
    • CrystalToolkitScene
    • Download
    • GraphComponent
    • PhononAnimationScene
    • DataBlock
    • DataTable
    • DownloadButton
    • DownloadDropdown
    • Drawer
    • DrawerContextProvider
    • DrawerTrigger
    • Enlargeable
    • Formula
    • Markdown
    • Modal
    • ModalContextProvider
    • ModalTrigger
    • SearchUIContainer
    • SearchUIDataHeader
    • SearchUIDataView
    • SearchUIFilters
    • SearchUIGrid
    • SearchUISearchBar
    • SynthesisRecipeCard
    • Tooltip
    • DualRangeSlider
    • FilterField
    • GlobalSearchBar
    • MaterialsInput
    • RangeSlider
    • Select
    • Switch
    • Dropdown
    • Link
    • Navbar
    • NavbarDropdown
    • NotificationDropdown
    • Scrollspy
    • Tabs
    • PeriodicContext
    • PeriodicContextTable
    • PeriodicElement
    • PeriodicFilter
    • PeriodicTableInput
    • BibCard
    • BibFilter
    • BibjsonCard
    • BibtexButton
    • CrossrefCard
    • OpenAccessButton
    • PublicationButton
    • dash_mp_components.BibCard
    • dash_mp_components.BibFilter
    • dash_mp_components.BibjsonCard
    • dash_mp_components.BibtexButton
    • dash_mp_components.CameraContextProvider
    • dash_mp_components.CrossrefCard
    • dash_mp_components.CrystalToolkitAnimationScene
    • dash_mp_components.CrystalToolkitScene
    • dash_mp_components.DataBlock
    • dash_mp_components.DataTable
    • dash_mp_components.Download
    • dash_mp_components.DownloadButton
    • dash_mp_components.DownloadDropdown
    • dash_mp_components.Drawer
    • dash_mp_components.DrawerContextProvider
    • dash_mp_components.DrawerTrigger
    • dash_mp_components.Dropdown
    • dash_mp_components.DualRangeSlider
    • dash_mp_components.Enlargeable
    • dash_mp_components.FilterField
    • dash_mp_components.Formula
    • dash_mp_components.GlobalSearchBar
    • dash_mp_components.GraphComponent
    • dash_mp_components.JsonView
    • dash_mp_components.Link
      • Link
        • Link.__init__()
        • Link.LoadingState
    • dash_mp_components.Markdown
    • dash_mp_components.MatSidebar
    • dash_mp_components.MaterialsInput
    • dash_mp_components.Modal
    • dash_mp_components.ModalContextProvider
    • dash_mp_components.ModalTrigger
    • dash_mp_components.Navbar
    • dash_mp_components.NavbarDropdown
    • dash_mp_components.NotificationDropdown
    • dash_mp_components.OpenAccessButton
    • dash_mp_components.PeriodicContext
    • dash_mp_components.PeriodicContextTable
    • dash_mp_components.PeriodicElement
    • dash_mp_components.PeriodicFilter
    • dash_mp_components.PeriodicTableInput
    • dash_mp_components.PhononAnimationScene
    • dash_mp_components.PublicationButton
    • dash_mp_components.RangeSlider
    • dash_mp_components.Scrollspy
    • dash_mp_components.SearchUIContainer
    • dash_mp_components.SearchUIDataHeader
    • dash_mp_components.SearchUIDataView
    • dash_mp_components.SearchUIFilters
    • dash_mp_components.SearchUIGrid
    • dash_mp_components.SearchUISearchBar
    • dash_mp_components.Select
    • dash_mp_components.Switch
    • dash_mp_components.SynthesisRecipeCard
    • dash_mp_components.Tabs
    • dash_mp_components.Tooltip

Contents:

  • dash_mp_components
    • JsonView
    • MatSidebar
    • CameraContextProvider
    • CrystalToolkitAnimationScene
    • CrystalToolkitScene
    • Download
    • GraphComponent
    • PhononAnimationScene
    • DataBlock
    • DataTable
    • DownloadButton
    • DownloadDropdown
    • Drawer
    • DrawerContextProvider
    • DrawerTrigger
    • Enlargeable
    • Formula
    • Markdown
    • Modal
    • ModalContextProvider
    • ModalTrigger
    • SearchUIContainer
    • SearchUIDataHeader
    • SearchUIDataView
    • SearchUIFilters
    • SearchUIGrid
    • SearchUISearchBar
    • SynthesisRecipeCard
    • Tooltip
    • DualRangeSlider
    • FilterField
    • GlobalSearchBar
    • MaterialsInput
    • RangeSlider
    • Select
    • Switch
    • Dropdown
    • Link
    • Navbar
    • NavbarDropdown
    • NotificationDropdown
    • Scrollspy
    • Tabs
    • PeriodicContext
    • PeriodicContextTable
    • PeriodicElement
    • PeriodicFilter
    • PeriodicTableInput
    • BibCard
    • BibFilter
    • BibjsonCard
    • BibtexButton
    • CrossrefCard
    • OpenAccessButton
    • PublicationButton
    • dash_mp_components.BibCard
    • dash_mp_components.BibFilter
    • dash_mp_components.BibjsonCard
    • dash_mp_components.BibtexButton
    • dash_mp_components.CameraContextProvider
    • dash_mp_components.CrossrefCard
    • dash_mp_components.CrystalToolkitAnimationScene
    • dash_mp_components.CrystalToolkitScene
    • dash_mp_components.DataBlock
    • dash_mp_components.DataTable
    • dash_mp_components.Download
    • dash_mp_components.DownloadButton
    • dash_mp_components.DownloadDropdown
    • dash_mp_components.Drawer
    • dash_mp_components.DrawerContextProvider
    • dash_mp_components.DrawerTrigger
    • dash_mp_components.Dropdown
    • dash_mp_components.DualRangeSlider
    • dash_mp_components.Enlargeable
    • dash_mp_components.FilterField
    • dash_mp_components.Formula
    • dash_mp_components.GlobalSearchBar
    • dash_mp_components.GraphComponent
    • dash_mp_components.JsonView
    • dash_mp_components.Link
    • dash_mp_components.Markdown
    • dash_mp_components.MatSidebar
    • dash_mp_components.MaterialsInput
    • dash_mp_components.Modal
    • dash_mp_components.ModalContextProvider
    • dash_mp_components.ModalTrigger
    • dash_mp_components.Navbar
    • dash_mp_components.NavbarDropdown
    • dash_mp_components.NotificationDropdown
    • dash_mp_components.OpenAccessButton
    • dash_mp_components.PeriodicContext
    • dash_mp_components.PeriodicContextTable
    • dash_mp_components.PeriodicElement
    • dash_mp_components.PeriodicFilter
    • dash_mp_components.PeriodicTableInput
    • dash_mp_components.PhononAnimationScene
    • dash_mp_components.PublicationButton
    • dash_mp_components.RangeSlider
    • dash_mp_components.Scrollspy
    • dash_mp_components.SearchUIContainer
    • dash_mp_components.SearchUIDataHeader
    • dash_mp_components.SearchUIDataView
    • dash_mp_components.SearchUIFilters
    • dash_mp_components.SearchUIGrid
    • dash_mp_components.SearchUISearchBar
    • dash_mp_components.Select
    • dash_mp_components.Switch
    • dash_mp_components.SynthesisRecipeCard
    • dash_mp_components.Tabs
    • dash_mp_components.Tooltip

Related Topics

  • Documentation overview
    • dash_mp_components
      • Previous: dash_mp_components.JsonView
      • Next: dash_mp_components.Markdown
©2026, Materials Project Team. | Powered by Sphinx 9.0.4 & Alabaster 1.0.0 | Page source