{"id":4306,"date":"2024-04-15T03:36:15","date_gmt":"2024-04-14T19:36:15","guid":{"rendered":"https:\/\/webflow.tenten.co\/?p=4306"},"modified":"2024-04-15T03:36:15","modified_gmt":"2024-04-14T19:36:15","slug":"components-for-embedding","status":"publish","type":"post","link":"https:\/\/webflow.tenten.co\/en\/components-for-embedding\/","title":{"rendered":"Components for Embedding"},"content":{"rendered":"\n<div class=\"docs_rich-text w-richtext\">\n<p>Embark on embedding components within one another to construct and maintain intricate layouts more effectively. As an illustration, consider transforming a button into a component. Later on, you can embed this button component into various other components across your site. Placing it within your navigation component, hero section component, or feature card component grants you the flexibility to individually update each component in a centralized location and witness the changes cascade through every other instance.<\/p>\n<p>This session will teach you:<\/p>\n<ol start=\"1\" role=\"list\">\n<li>Techniques for embedding an existing component<\/li>\n<li>Procedure to design a new nested component from portions of an existing component<\/li>\n<li>Establishing links between nested component attributes and parent component attributes<\/li>\n<\/ol>\n<h2>Embedding an Existing Component<\/h2>\n<p>To embed an existing component within another component:<\/p>\n<ol start=\"1\" role=\"list\">\n<li>Choose the desired component for placing another component<\/li>\n<li>Modify the primary component<\/li>\n<li>Access the <strong>Components<\/strong><strong>panel<\/strong> (alternatively, utilize the keyboard shortcut <strong>Shift <\/strong>+<strong> A<\/strong>)<\/li>\n<li>Drag a component from the panel and release it into the selected component on the canvas or in the Navigator<\/li>\n<\/ol>\n<h2>Creating a New Nested Component from Existing Elements<\/h2>\n<p>To craft a fresh component within an existing component:<\/p>\n<ol start=\"1\" role=\"list\">\n<li>Select the component where you wish to insert another component<\/li>\n<li>Modify the main component<\/li>\n<li>Select the desired element for conversion into a component<\/li>\n<li>Access the <strong>Style<\/strong><strong>panel<\/strong> or the <strong>Element settings<\/strong><strong>panel<\/strong><\/li>\n<li>Click the icon labeled \u201c<strong>create component<\/strong>\u201d at the panel&#8217;s top<\/li>\n<li>Name your new component and hit <strong>Create<\/strong><\/li>\n<\/ol>\n<p>Furthermore, it&#8217;s possible to generate a component from a parent element that already hosts a component, leading to a child component nested inside a parent component.<\/p>\n<h2>Aligning Nested Component Attributes with Parent Component Attributes<\/h2>\n<p>Upon embedding a component \u2014 which already features defined component attributes \u2014 within another component that also holds component attributes, the choice arises to link the nested component\u2019s attributes to the parent component\u2019s attributes. This paves the way for the nested component attributes to leverage altered values from the parent component instances.<\/p>\n<p>For instance, envision having a card containing a header, body text, and a button. The card functions as a component, while the button element within the card serves as a component (i.e., a nested component). You retain the option to link the button text to any text within the card, provided that each element within the component comes with defined component attributes.<\/p>\n<p>To establish connections between a nested component\u2019s attributes and a parent component\u2019s attributes:<\/p>\n<ol start=\"1\" role=\"list\">\n<li>Select the parent component housing the nested component and modify its main component<\/li>\n<li>Modify the main component of the nested component that includes the element(s) requiring linkage to a parent component attribute<\/li>\n<li>Click on the element<\/li>\n<li>Navigate to the <strong>Element settings<\/strong><strong>panel<\/strong> and create an attribute<\/li>\n<li>Exit the main component of the nested component<\/li>\n<li>Move to the primary component of the parent component<\/li>\n<li>Access the panel on the right<\/li>\n<li>Click the purple \u201c<strong>dot<\/strong>\u201d icon adjacent to the attribute for linkage<\/li>\n<li>Select \u201c<strong>Create &amp; connect new attribute<\/strong>\u201d and create an attribute<\/li>\n<li>Exit the main component of the parent component<\/li>\n<li>Choose the parent component\u2019s instance<\/li>\n<li>Visit the panel on the right<\/li>\n<li>Allocate a value to the attribute<\/li>\n<\/ol>\n<\/div>\n","protected":false},"excerpt":{"rendered":"Build complex layouts with nested components.","protected":false},"author":2,"featured_media":4307,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":"","footnotes":""},"categories":[284],"tags":[],"class_list":{"0":"post-4306","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-layout-design","8":"cs-entry"},"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/4306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/comments?post=4306"}],"version-history":[{"count":0,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/4306\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media\/4307"}],"wp:attachment":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media?parent=4306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/categories?post=4306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/tags?post=4306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}