Pricing Blog

Component instances

  • nathandh.-1362144560897327164

    nathandh

    3 months ago

    Is there a way to add a component and make changes which affect only that single instance? Meaning, I don't want to change the main parent component which would cascade to all children (thinking specifically how Webflow does this, or Figma)
  • max.kayr-1362145706416144556

    Max

    3 months ago

    Yes 😊 that is what attributes, contexts and style overrides are for.
    With attributes and context, you can change the functionality of the component or implement conditions. Style overrides style that one instance of the component (the root element), but leave the original intact
  • lucasg-1362146213725470911

    Lucas G

    3 months ago

    There are also slots
  • Technically not part of the component itself but slots allow you to extend components even further
  • max.kayr-1362147679307694171

    Max

    3 months ago

    Ah, sure! 😅
  • It's late
  • nathandh.-1362865804030513303

    nathandh

    3 months ago

    Interesting! I think I have to re-wire my brain around how toddle does components but glad to know there's a way 👍🏼