eds-kg-learning-resources

Explore the Interactive Component

Use the playground below to experiment with the component. Click the button to view the full Storybook deployment for additional examples and configurations.

eds-kg-learning-resources Open in Storybook

See It in Use with Code

The component fetches EBRAINS Knowledge Graph learning resources from api-endpoint (default /api/v1/kg/learning-resources/cached, served by the unified API) and lists them grouped by software.

Plain HTML

In React

Properties

PropertyAttributeDescriptionTypeDefault
apiEndpointapi-endpointAPI endpoint for fetching learning resourcesstring'/api/v1/kg/learning-resources/cached'
headingheadingComponent headingstring''
resolveNamesresolve-namesWhether to resolve software namesbooleantrue
sizesizeMax resources to fetchnumber500
variantvariantVisual variant for accordions and cards"default" | "inverse"'inverse'

Dependencies

Depends on

Graph

graph TD;
  eds-kg-learning-resources --> eds-link
  eds-kg-learning-resources --> eds-tag
  eds-kg-learning-resources --> eds-spinner
  eds-kg-learning-resources --> eds-alert
  eds-kg-learning-resources --> eds-accordion
  eds-link --> eds-icon-wrapper
  eds-alert --> eds-icon-wrapper
  eds-alert --> eds-link
  eds-alert --> eds-button
  eds-button --> eds-icon-wrapper
  eds-accordion --> eds-icon-wrapper
  style eds-kg-learning-resources fill:#f9f,stroke:#333,stroke-width:4px

Built with StencilJS