@birdycom/omniaui-react
v0.15.1
Published
OmniaUI for React: typed function components and page blocks that render the exact @birdycom/omniaui and @birdycom/omniaui-blocks markup.
Downloads
2,871
Maintainers
Readme
@birdycom/omniaui-react
React 18/19 function components for OmniaCSS. Every component and block renders the exact markup and classes of the HTML snippets in @birdycom/omniaui and @birdycom/omniaui-blocks; the CSS packages own all styling.
npm install @birdycom/omniaui-react @birdycom/omniaui @birdycom/omniaui-blocks react react-domimport { Button, Modal, ModalClose, ToastProvider, useToast } from "@birdycom/omniaui-react";
<Button variant="outline" size="sm">Save</Button>- Props map to modifiers:
variant,size(sm/md/lg), boolean flags; slots arechildrenplus named props (title,description,actions,footer). refis forwarded, rest props are spread,classNameis merged.- Dialogs (
Modal,AlertDialog,Sheet,BlockWizardDialog) sync anopenprop with the native<dialog>; dropdowns and popovers use the nativepopoverattribute. - Wrapper logic lives in the components:
Commandfiltering,PasswordInputreveal,CopyField, toast queue (ToastProvider+useToast). src/is published too: copy a file into your project to own the code.manifest.jsonlists{ name, kind, file, snippet }for every item.
MIT
