@oods/components-react
v0.5.0
Published
React components for OODS Foundry: the controls, layouts and domain views its generated screens use.
Maintainers
Readme
@oods/components-react
React components used by screens generated with OODS Foundry. The package exports controls, layouts and domain views; @oods/component-styles provides their CSS.
Install
npm install @oods/components-react @oods/component-styles @oods/tokens @oods/component-contracts react react-domUse React and React DOM 18 or 19. Bring your existing React app or use OODS Foundry's code_generate with options.output: "application" for an app entry and Vite configuration.
First result
import { Button } from '@oods/components-react';
import '@oods/component-styles/css';
export function App() {
return <Button content="Review stock" intent="primary"
onActivate={() => window.alert('Connect this action to your application.')} />;
}Set data-brand="A" and data-theme="light" on the root HTML element. The result is a button labelled “Review stock” that invokes the supplied handler. Set the theme to dark or hc for those scopes.
Generated sample screens identify their sample data. A workflow's local store is not a production database; supply your data, navigation and persistence handlers. Retained component evidence covers named scenarios and themes, not every application you build. For your own implementation of a shipped component, use OODS Foundry's substitution mapping and inspect its advisory contract report.
Limits
Use matching versions of the OODS packages. These packages are separate from the local MCP server, @oods/foundry. For an unpublished release candidate, install the supplied tarballs together instead of resolving them from npm.
License
Apache License 2.0. See LICENSE and NOTICE. Generated output belongs to its user; installed package dependencies retain their own licenses.
