doors-ui
v0.1.3
Published
Some random windows OS UI experiments on web because dashboard has too many stuffs ``` npm i doors-ui ``` ```javascript import 'doors-ui/src/globals.css' import { Door, useDisclosure } from 'doors-ui';
Downloads
7
Readme
Doors UI
Some random windows OS UI experiments on web because dashboard has too many stuffs
npm i doors-ui
import 'doors-ui/src/globals.css'
import { Door, useDisclosure } from 'doors-ui';
const App = () => {
const disclosureProps = useDisclosure({ defaultIsOpen: true });
return (
<div>
<button onClick={disclosureProps.onToggle}>open A</button>
<Door title={'A'} disclosureProps={disclosureProps} lessThanScreen={true}>
content for A
</Door>
</div>
);
};