repo_description: 📚 Effortless documentation, done right.
repo_topics: documentation documentation-tool docute gitbook pr-welcome vue
code: export default {
    name: 'InjectedComponents',
  
    functional: true,
  
    props: {
      position: {
        type: String,
        required: true
      }
    },
  
    render(h, {props, parent}) {
      const components = parent.$pluginApi.getComponents(props.position)
  
      if (components.length === 0) return
  
      return h(
        'div',
        {
          class: 'InjectedComponents',
          attrs: {
            'data-position': props.position
          }
        },
        components.map(({component, props}) => h(component, {props}))
      )
    }
  }
  