@collabland/core-ui
Abridged Collab.land core UI
Install
npm install @collabland/core-ui --save
or
yarn add @collabland/core-ui
Collabland core UI components usage
import { Button } from '@collabland/core-ui';
return (
<Button
disabled={false}
id="btn-id"
name="btn-name"
onClick={() => {}}
fullWidth={false}
size="medium" // 'small' | 'medium' | 'large'
theme="primary" // 'primary' | 'secondary'
>
I am Button
</Button>
);
import { Footer } from '@collabland/core-ui';
return <Footer />;
import { Header } from '@collabland/core-ui';
return <Header />;
import { NewLoading } from '@collabland/core-ui';
return <NewLoading />;
import { Navbar } from '@collabland/core-ui';
return (
<Navbar>
<CustomerComponent />
</Navbar>
);
import { PopupModal } from '@collabland/core-ui';
return (
<PopupModal>
<CustomerComponent />
</PopupModal>
);
import { Toast } from '@collabland/core-ui';
return (
<Toast
isSucceed={true}
toastMessage={'Successed'}
handelClose= () => {}
/>
);
import { Axie } from '@collabland/core-ui';
return <Axie width="100px" height="100px" />;
import { Input } from '@collabland/core-ui';
return <Input />;
Development
npm install
npm run storybook
Build
npm run build
Publish
npm publish
Changelog