@yanbe/hrnet-dropdown
Advanced tools
Comparing version 1.0.9 to 1.0.10
{ | ||
"name": "@yanbe/hrnet-dropdown", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "A simple dropdown menu component for React", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -11,3 +11,5 @@ # A Simple Dropdown Component For React | ||
- The recommended IDE to use is Visual Studio Code. | ||
## Description | ||
@@ -36,3 +38,4 @@ | ||
- You can install the component using : `$ npm i @yanbe/hrnet-dropdown` | ||
- You can install the component using the following command: | ||
- `npm install @yanbe/hrnet-dropdown` | ||
@@ -48,3 +51,3 @@ | ||
import { Dropdown } from "@yanbe/hrnet-dropdown"; | ||
import Dropdown from "@yanbe/hrnet-dropdown"; | ||
@@ -62,6 +65,5 @@ ``` | ||
import React, { useState } from "react"; | ||
import { Dropdown } from "@yanbe/hrnet-dropdown"; | ||
import Dropdown from '@yanbe/hrnet-dropdown'; | ||
function App() { | ||
@@ -91,3 +93,9 @@ | ||
return ( | ||
<div className="App"> | ||
<div | ||
className="App" | ||
style={{ | ||
display: "flex", | ||
flexDirection: "column", | ||
alignItems: "center" | ||
}}> | ||
@@ -94,0 +102,0 @@ <h1>Dropdown Demo</h1> |
22898
152