--- title: Custom components slug: /develop/api-reference/custom-components --- # Custom components

Declare a component

Create and register a custom component. ```python st.components.v1.declare_component( "custom_slider", "/frontend", ) ```

HTML

Display an HTML string in an iframe. ```python st.components.v1.html( "

Foo bar.

" ) ```

iframe

Load a remote URL in an iframe. ```python st.components.v1.iframe( "docs.streamlit.io" ) ```