@infineon/design-system
v42.4.4
Published
Infineon Design System - Web Components
Readme
Infineon Design System
45+ production-ready web components built with Stencil. Framework-agnostic components that work everywhere: Vanilla JS, React, Angular, Vue, and more.
📚 View Live Storybook | 🎯 Example Apps | 📖 Full Documentation
✨ Features
- ✅ 45+ Production-Ready Components - Buttons, forms, tables, modals, navigation, and more
- ✅ Framework Agnostic - Works with React, Angular, Vue, or vanilla JavaScript
- ✅ TypeScript Support - Full type definitions included
- ✅ Accessible - WCAG 2.1 compliant components
- ✅ Themeable - Customizable with CSS custom properties
- ✅ Tree-Shakeable - Import only what you need
- ✅ CDN Ready - Use directly from jsDelivr with zero build setup
Layout & Navigation
Accordion • Breadcrumb • Footer • Navigation • Tabs • Tree View
Forms & Input
Button • Icon Button • Checkbox • Radio Button • Text Field • Textarea • Select • Dropdown • Switch • Slider • Search Bar • Search Field • Date Picker • File Upload
Data Display
Table • Advanced Table • Overview Table • Card • Status • Indicator • Progress Bar • Chip • Tooltip
Feedback & Messaging
Alert • Modal • Notification • Spinner
Actions & Controls
Action List • Content Switcher • Segmented Control • Stepper • Pagination
🚀 Installation
npm install @infineon/design-system📖 Usage
Vanilla JavaScript / HTML
Option 1: CDN (Easiest)
<!DOCTYPE html>
<html>
<head>
<script type="module" src="https://cdn.jsdelivr.net/npm/@infineon/design-system"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@infineon/design-system/dist/infineon-design-system-stencil/infineon-design-system-stencil.css">
</head>
<body>
<ifx-button variant="primary">Click Me</ifx-button>
<ifx-switch checked></ifx-switch>
<ifx-text-field label="Email" type="email"></ifx-text-field>
</body>
</html>Option 2: NPM with Bundler (Tree-Shakeable)
// Import only the components you need
import '@infineon/design-system/dist/components/ifx-button';
import '@infineon/design-system/dist/components/ifx-switch';React
npm install @infineon/design-system-reactimport { IfxButton, IfxSwitch } from '@infineon/design-system-react';
function App() {
return (
<>
<IfxButton variant="primary" onIfxClick={() => console.log('clicked')}>
Click Me
</IfxButton>
<IfxSwitch checked />
</>
);
}Angular
npm install @infineon/design-system-angular// app.module.ts
import { IfxComponentsModule } from '@infineon/design-system-angular';
@NgModule({
imports: [IfxComponentsModule]
})
export class AppModule {}<!-- app.component.html -->
<ifx-button variant="primary" (ifxClick)="handleClick()">Click Me</ifx-button>
<ifx-switch [checked]="true"></ifx-switch>Vue
npm install @infineon/design-system-vue// main.js
import { ComponentLibrary } from '@infineon/design-system-vue';
app.use(ComponentLibrary);<template>
<ifx-button variant="primary" @ifxClick="handleClick">Click Me</ifx-button>
<ifx-switch :checked="true" />
</template>🎨 Theming
Customize components using CSS custom properties:
ifx-button {
--ifx-button-primary-background: #006699;
--ifx-button-primary-color: #ffffff;
}All design tokens are provided by @infineon/design-system-tokens.
📖 TypeScript Support
Full TypeScript definitions are included:
import type { Components } from '@infineon/design-system';
// Get component interface
type ButtonProps = Components.IfxButton;
const buttonConfig: Partial<ButtonProps> = {
variant: 'primary',
disabled: false,
size: 'medium'
};🤝 Contributing
We welcome contributions! Please see the main Contributing Guide for:
- Development setup
- Code standards
- Component creation guidelines
- Pull request process
📄 License
MIT License - see LICENSE file for details.
🔗 Links
📞 Support
- Email: [email protected]
- Issues: GitHub Issues## 📖 TypeScript
Full TypeScript definitions included:
import type { Components } from '@infineon/design-system';
type ButtonProps = Components.IfxButton;📚 Resources
- Live Storybook → - Interactive component playground
- GitHub Repository → - Source code & documentation
- Example Apps → - React, Angular, Vue examples
- Contributing Guide → - How to contribute
🌐 Browser Support
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
🤝 Contributing
Contributions welcome! See our Contributing Guide.
📄 License
MIT - see LICENSE
📞 Support
- Email: [email protected]
- Issues: GitHub Issues
