@chain1/ui-components
v1.0.0
Published
Reusable UI components for chain wallet app
Maintainers
Readme
@chain1/stok-ui-components
Reusable UI components for STOK chain wallet app.
Installation
npm install @chain1/stok-ui-components
# or
yarn add @chain1/stok-ui-componentsComponents
CustomHeader
A customizable header component with navigation, notifications, and settings.
import { CustomHeader } from '@chain1/stok-ui-components';
<CustomHeader
title="Home"
showLogo={true}
showBackButton={false}
navigation={navigation}
/>Props
title(string): Header title textshowLogo(boolean): Show app logoshowBackButton(boolean): Show back buttonnavigation(object): React Navigation objectbackIcon(element): Custom back icon componentlogoImage(element): Custom logo componentbellIcon(element): Custom notification bell iconsettingsIcon(element): Custom settings icononShowNotifications(function): Custom notification handler
License
MIT
