JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q29092F
  • License ISC

A simple dropdown component for React

Package Exports

  • custom-dropdown-react
  • custom-dropdown-react/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 (custom-dropdown-react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Mon Custom Dropdown React Component

Un composant de dropdown personnalisé pour React.

Installation

Vous pouvez installer ce composant en utilisant npm ou yarn :

npm install mon-custom-dropdown-react
# ou
yarn add mon-custom-dropdown-react

Utilisation

Pour utiliser le composant Dropdown dans votre application React, vous devez l'importer comme suit :

import { Dropdown } from 'mon-custom-dropdown-react';

// Utilisez le composant Dropdown dans votre JSX
function App() {
  return (
    <div>
      <h1>Mon Application React</h1>
      <Dropdown title="Custom-title" children={['option 1', 'option 2', 'option 3']}/>
    </div>
  );
}

export default App;

Popriétés

Le composant Dropdown accepte les propriétés suivantes :

  • title: Le titre du dropdown.
  • children: Un tableau d'options à afficher dans le dropdown.