react-sitelib
v0.0.46
Published
Demonhead UI Library
Downloads
16
Readme
react-sitelib
A comprehensive React library that simplifies UI development by offering a rich collection of reusable UI components and utility methods. Designed to streamline the creation of user interfaces across various applications, this package allows our team to centralize and maintain consistent UI elements, ensuring a cohesive and efficient development process
Installation (for standard modern project)
npm i react-sitelib
Dependencies
Required Peer Dependencies
These libraries are not bundled with React-Sitelib and are required at runtime:
example usage
import { TitleWMutedRow, FieldValidationErrorMsg, HelpText, SubmitButton } from 'react-sitelib';
function SomeExamples() {
return (
<>
<TitleWMutedRow muted={language.mutedTitle}>{language.title}</TitleWMutedRow>
<HelpText>Enter the code you received in your email to finish signing in.</HelpText>
<div className="form-group text-center">
<div className="input-group mb-2">
<input type="hidden" className="form-control" id="code" placeholder="Enter verification code" {...register("code")} />
</div>
<FieldValidationErrorMsg field="code" errors={errors} />
</div>
<SubmitButton isSubmitting={isSubmitting} isSubmitSuccessful={isSubmitSuccessful} defaultLabel="Verify Code" className="btn-medstar-primary"/>
</>
);
}