0.0.12 • Published 1 year ago

@codesoup/floating-menu v0.0.12

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
1 year ago

Floating Menu

Automatically add a floating menu to your app.

Dependencies

  • @iconify/svelte

Installation

#in your app directory
npm install svelte-demo-floating-menu @iconify/svelte

How to use

  • Import the component and supply it with an options object containing, at a minimum, a menuName and make sure targeted links are given both {menuName} and {handle} as classes. eg: options = { github: {}}
  • Each menu can be given any of the following properties: 'desktop' (boolean), 'handheld' (boolean), 'icon' (string), 'handle' (string).
  • Default visibility is 'true' for both desktop and handheld devices.
  • Default handle is 'menu-item'.
<script>
  import { svelte-demo-floating-menu } from 'svelte-demo-floating-menu';

  # supply an options object to the component containing as as minimum a 'menuName' with default properties
  const options = { menuName: { }, otherMenuName: {}, ... };

  # or overwrite default menu properties
  const options = { menuName: { desktop: true/false, handheld: true/false, icon: "iconify string", handle: 'link class string'}};
  ...
</script>

<body>
  <FloatingMenu options={options} />
  ...
  # add {menuName} and {handle} as classes to targeted links, add title attribute if child content is a graphics element only (or is empty!)
  <a class="{menuName} {handle}" href="linktosomewhere.url" title="link description">Link description</a>
abbrevagent-baseacorn-jsxansi-regexajvare-we-there-yetanymatchargparsearray-unionacornbalanced-matchbinary-extensionsasync-semaansi-stylesbracesbindingsbusboybrace-expansionchokidarchalkaprobabuffer-crc32callsiteschownrcolor-convertcolor-namecookiecolor-supportdebugconcat-mapdedent-jsconsole-control-stringsdeepmergedelegatesdetect-indentdevaluecross-spawndeep-isdetect-libcdir-globesbuildesbuild-darwin-64doctrineemoji-regexes6-promiseescape-string-regexpeslint-scopeeslint-utilseslint-visitor-keysespreeesqueryesrecurseesutilsestree-walkerfast-deep-equalfast-globestraversefast-levenshteinfast-json-stable-stringifyfill-rangefile-entry-cachefile-uri-to-pathfastqflat-cachefind-upfseventsfunction-bindfs-minipassflattedglob-parentfs.realpathgaugeglobalsglobglobalyzerglobbyglobrexhashas-flaghas-unicodegraceful-fshttps-proxy-agentgrapheme-splitterignoreimport-freshis-core-moduleis-binary-pathis-extglobis-fullwidth-code-pointis-globis-numberimurmurhashinheritsinflightisexejson-schema-traversekleurjs-sdsljson-stable-stringify-without-jsonifyjs-yamllower-caselevnmagic-stringlocate-pathmake-dirlodash.mergemimemerge2min-indentlru-cachemicromatchminimatchminimistmrimrmimemsnanoidminipassno-casemkdirpnatural-compareminizlibnode-fetchnormalize-pathnode-gyp-buildnpmlognoptobject-assignp-limitpascal-caseonceoptionatorp-locateparent-modulepath-existspath-keypicocolorspicomatchpath-is-absolutepostcsspath-parsepath-typeplaywright-coreprelude-lsreaddirppunycoderesolvequeue-microtaskreadable-streamregexparamrollupregexppresolve-fromreusifysaderimrafrun-parallelsafe-bufferrollup-pluginutilsset-cookie-parsersandersemverset-blockingsirvshebang-commandshebang-regexsource-map-jsstreamsearchsourcemap-codecslashsignal-exitsorcerystrip-indentstring-widthsupports-colorstring_decodersvelte-hmrstrip-json-commentssvelte2tsxstrip-ansitarto-regex-rangetotalistsupports-preserve-symlinks-flagtext-tabletr46tsutilstiny-globtype-checkundicitype-festwebidl-conversionsuri-jsutil-deprecatewhatwg-urlwhichwide-alignword-wrapwrappyworktopyocto-queueyallist
0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago