# st.components.v1.declare_component

Source: https://docs.streamlit.io/develop/api-reference/custom-components/st.components.v1.declare_component

* Function signature:

   ```python
   st.components.v1.declare_component(name, path=None, url=None)
   ```

* Parameters:

   | name | type | default | description |
   |---|---|---|---|
   | name | str |  | A short, descriptive name for the component, like "slider". |
   | path | str, Path, or None |  | The path to serve the component's frontend files from. The path should be absolute. If path is None (default), Streamlit will serve the component from the location in url. Either path or url must be specified. If both are specified, then url will take precedence. |
   | url | str or None |  | The URL that the component is served from. If url is None (default), Streamlit will serve the component from the location in path. Either path or url must be specified. If both are specified, then url will take precedence. |

* Returns: CustomComponent

    A CustomComponent that can be called like a function.
Calling the component will create a new instance of the component
in the Streamlit app.
