Skip to content

How do I rename I custom component that I adjusted? #3723

Answered by dosubot bot
menzelma asked this question in Q&A
Discussion options

You must be logged in to vote

The reason your custom component still appears as "Custom Component" in the canvas even after setting the display_name attribute is likely because the display_name attribute is not being properly utilized or referenced in the code that renders the component on the canvas.

In the provided code, the display_name attribute is set correctly within the CustomComponent class:

class CustomComponent(Component):
    display_name = "Async Component"
    description = "Use as a template to create your own component."
    documentation: str = "http://docs.langflow.org/components/custom"
    icon = "custom_components"
    inputs = [
        StrInput(name="input_value", display_name="Input Value", value=

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@menzelma
Comment options

@dosubot
Comment options

Answer selected by menzelma
@menzelma
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant