Remote Components
MDXE supports importing components from remote URLs.
Usage
import Button from 'https://ui.example.com/button'
import Card from 'https://components.example.com/card'
<Button>Click me</Button>
<Card title="Example">Content</Card>
Security Considerations
- Only import from trusted sources
- Use HTTPS URLs
- Consider implementing CSP headers
- Cache remote components
Best Practices
// Configure trusted sources
const config = {
allowedDomains: [
'ui.example.com',
'components.example.com'
]
}
See Security Guide for more details.