@arclux/arc-ui-react
v2.1.0
Published
React wrappers for ARC UI Web Components.
Downloads
194
Maintainers
Readme
@arclux/arc-ui-react
React wrappers for ARC UI web components with full TypeScript support.
Auto-generated -- this package is produced by Prism from the canonical source in
@arclux/arc-ui. Do not edit by hand.
Installation
npm install @arclux/arc-ui-react @arclux/arc-uiRequires react >= 18.0.0 and react-dom >= 18.0.0.
Usage
import { Button, Card, Input } from '@arclux/arc-ui-react';
function App() {
return (
<>
<Button variant="primary" onClick={() => console.log('clicked')}>
Get Started
</Button>
<Card>
<h3>Card Title</h3>
<p>Card content.</p>
</Card>
<Input
label="Email"
type="email"
placeholder="[email protected]"
onArcInput={(e) => console.log(e.detail.value)}
/>
</>
);
}Components are organized by category and can be imported from subpaths:
import { Button } from '@arclux/arc-ui-react/input';
import { Card } from '@arclux/arc-ui-react/content';
import { AppShell } from '@arclux/arc-ui-react/layout';Documentation
Full component docs and interactive examples: arcui.dev
