@finastra/menu-trigger
TypeScript icon, indicating that this package has built-in type declarations

1.8.1 • Public • Published

MenuTrigger

See it on NPM! How big is this package in your project? Storybook

The <fds-menu-trigger> is a toggle button used for menu.

Usage

Import

npm i @finastra/menu-trigger
import '@finastra/menu-trigger';
...
<fds-menu-trigger label="Develop"></fds-menu-trigger>

API

Properties

Property Attribute Type Default Description
dense boolean Use the smaller button size
disabled boolean Is the button disabled or not
fullwidth boolean Use the full width of its parent
icon string "apps" The name of the icon displayed before the label
Use trailingIcon to true to display this icon after the label
label string "Launch" The label displayed inside the button
large boolean Use the larger button size
on on boolean false Whether the toggle is activated.
secondary secondary boolean false Whether the toggle button should be using secondary.
trailingIcon boolean Display the icon after the label instead of before
type "button" | "reset" | "submit"

Methods

Method Type
toggle (): void

Package Sidebar

Install

npm i @finastra/menu-trigger

Weekly Downloads

78

Version

1.8.1

License

MIT

Unpacked Size

16.3 kB

Total Files

17

Last publish

Collaborators

  • david.bocle
  • ffdcbot
  • ttalbot