Package Exports
- @ezyren/oppr_ui
- @ezyren/oppr_ui/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ezyren/oppr_ui) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@ezyren/oppr-ui
Reusable UI components for Oppr.
📜 Table of Contents
Installation
npm install @ezyren/oppr-ui or yarn add @ezyren/oppr-ui
Usage
Avatar
`import { Avatar } from "@ezyren/oppr_ui";
BreadCrumbs
`import { Breadcrumbs } from "@ezyren/oppr_ui";
const breadcrumbItems = [ { label: "Home", href: "/" }, { label: "Components", href: "/components" }, { label: "Breadcrumbs" }, ];
return
Button
`import { Button } from "@ezyren/oppr_ui"; return ;
Card
`import { Card } from "@ezyren/oppr_ui";
return
Checkbox
`import { Checkbox } from "@ezyren/oppr_ui";
function MyComponent() { const [isChecked, setIsChecked] = useState(false);
return (
Subscribed!
}Dialog
import { Dialog} from "@ezyren/oppr_ui";
function MyComponent() { const [isOpen, setIsOpen] = useState(false);
return ( <> <Button onClick={() => setIsOpen(true)}>Open Dialog <Dialog isOpen={isOpen} onClose={() => setIsOpen(false)} title="Example Dialog">
This is a sample dialog with some content.
</> ); }Dropdown
import { Dropdown } from "@ezyren/oppr_ui";
function MyComponent() { const [selectedOption, setSelectedOption] = useState<string | null>(null);
const options = [ { label: "Option 1", value: "option1" }, { label: "Option 2", value: "option2" }, { label: "Option 3", value: "option3" }, ];
return ( <> <Dropdown label="Select Option" options={options} onSelect={(value) => setSelectedOption(value)} /> {selectedOption && (
Selected Option: {selectedOption}
)} </> ); }Header
`import { Header } from "@ezyren/oppr_ui"; <Header logoSrc="/images/opprlogo.svg" links={[ { href: "/button", label: "Button" }, { href: "/card", label: "Card" }, { href: "/tooltip", label: "Tooltip" }, ]} />