Numbers Prefer Multiplication

    @visual-framework/vf-dropdown

    1.0.0-alpha.4 • Public • Published

    Dropdown component

    npm version

    About

    A dropdown component that can be used in navigation menus.

    Usage

    Supports click trigger to open. User can select menu item or click outside menu to close it. When menu is open, outside clicks will be captured by menu.

    Currently, usage intended with navigation menu.

    Install

    This repository is distributed with [npm][https://www.npmjs.com/]. After [installing npm][https://www.npmjs.com/get-npm] and yarn, you can install vf-dropdown with this command.

    $ yarn add --dev @visual-framework/vf-dropdown
    

    JS

    You should import this component in ./components/vf-component-rollup/scripts.js or your other JS process:

    import { vfDropdown } from 'vf-dropdown/vf-dropdown';
    // Or import directly
    // import { vfDropdown } from '../components/raw/vf-dropdown/vf-dropdown.js';
    vfDropdown(); // invoke it

    Sass/CSS

    The style files included are written in Sass. If you're using a VF-core project, you can import it like this:

    @import "@visual-framework/vf-dropdown/index.scss";
    

    Make sure you import Sass requirements along with the modules. You can use a project boilerplate or the vf-sass-starter

    Help

    Install

    npm i @visual-framework/vf-dropdown

    DownloadsWeekly Downloads

    3

    Version

    1.0.0-alpha.4

    License

    Apache 2.0

    Unpacked Size

    28.4 kB

    Total Files

    14

    Last publish

    Collaborators

    • khawkins98