1.1.4 • Published 2 years ago

oreid-profile v1.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

ORE ID - React Profile

Popup User Profile Experience

This library should be used in a React application. This library requires the oreid-js npm package.

Overview

This library works with oreid-js to provide a "buttom user profile experience" and a "modal user profile" for oreid users.

How to use

Installation

npm install oreid-js oreid-profile

or

yarn add oreid-js oreid-profile

After installation, initalize oreid-js. We recommend that you initialize it once during your application's bootstrap.

User's button profile

<OreIdProfileButton
	align="right" // "left" | "right";
	oreId={oreId} // OreId instance
	style={{
		backgroundColor: "#2A3566",
		linkColor: "#3A9FFF",
		textColor: "#fff",
	}}
/>

User's profile

<OreIdProfile
	anchor={<button onClick={() => setShowModal(true)}>open profile</button>} // JSX.Element that the modal will be "linked to"
	open={isOpen} // boolean
	onClose={() => setIsOpen(false)} // onClose function
	oreId={oreId} // OreId instance
	align="right" // "left" | "right";
/>
1.1.1

2 years ago

1.1.0

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.3

2 years ago

1.0.3-beta.1

2 years ago

1.0.3-beta.0

2 years ago

1.0.2

2 years ago

1.0.1-beta.0

2 years ago

1.0.1

2 years ago

1.0.0-beta.4

2 years ago

1.0.0-beta.3

2 years ago

1.0.0-beta.2

2 years ago

1.0.0-beta.1

2 years ago

1.0.0-beta.0

2 years ago

1.0.0

2 years ago