-
| in 0.6 you were able to do #[component]
fn Foo(
  #[prop(attrs)] attributes: Vec<(&'static str, Attribute)>
) -> impl IntoViewbut this doesn't appear to be the case with 0.7 using  | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            gbj
          
      
      
        Sep 4, 2024 
      
    
    Replies: 1 comment 3 replies
-
| In 0.7 you can just add attributes to a component and they will be added to the element(s) it returns. See the  Feel free to provide more details if this does not suit your needs. | 
Beta Was this translation helpful? Give feedback.
                  
                    3 replies
                  
                
            
      Answer selected by
        Upbolt
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
In 0.7 you can just add attributes to a component and they will be added to the element(s) it returns. See the
spreadexample.Feel free to provide more details if this does not suit your needs.