0.13.4 • Published 2 years ago

twindy-headless v0.13.4

Weekly downloads
280
License
-
Repository
-
Last release
2 years ago

twindy-headless

Vue components to be used with twindy CSS framework.

These components implement UI view behaviours, but do not provide a specific design. Sample implementations will be available, but are not attached to the components by default.


WORK IN PROGRESS / VUE3 ONLY


tw-button

Import:

import twButton from "twindy-headless/components/tw-button.vue"

Use in template:

<tw-button @action="doSomething">Do it</tw-button>

Define styles:

.tw-button {
  /* Your styles */
}

tw-input

tw-modal

tw-items

Items in dropdowns, menus or selection lists.

tw-list

Represents a list of entries that is optimized for scrolling.

One or multiple entries can be selected.

TODO: Navigate using cursor keys; selecting using space

tw-popover

Positions an overlay using Popper.

<tw-popover :target="anchorElement" arrow mode="tooltip">
  Hello <b>World</b>
</tw-popover>

tw-tooltip-trigger

If placed somewhere in the project will show tooltips for elements having a tooltip attribute defining the tooltip plain text content. tooltip-placement attribute can be used to set the direction relative to the element, where the tooltip should appear. Default is top.

See also: tw-popover

tw-debug

Debug output of Vue reactive objects. Requires CSS import:

import "twindy-headless/index.css"

useActive(props)

This helper is used to activate an element. tw-modal and tw-popover use it and can be activated through two separate ways:

  1. Attach a reactive boolean to v-model. If true the element will show up and on false will hide. If the element closes itself it reflects the state in the value.
  2. Trigger via setting the property :active to true. You need to make sure to set it to false yourself or listen to @close events to trigger more than once.
let show = useActive(props)

useFontLoaded(fontName:string, action: Function)

Executes action when the font specified in fontName is loaded. Example:

useFontLoaded("Inter", resizeInputField)

useDocumentClass(className)

For the lifetime of a component adds the className to html element.


  • Uses Typescript
  • Plans to support ARIA
  • Mobile friendly
0.13.1

2 years ago

0.13.2

2 years ago

0.13.3

2 years ago

0.13.4

2 years ago

0.12.7

2 years ago

0.12.2

2 years ago

0.12.3

2 years ago

0.12.4

2 years ago

0.12.5

2 years ago

0.12.6

2 years ago

0.12.1

2 years ago

0.11.19

2 years ago

0.11.17

3 years ago

0.11.18

2 years ago

0.11.15

3 years ago

0.11.16

3 years ago

0.11.14

3 years ago

0.11.13

3 years ago

0.11.12

3 years ago

0.11.10

3 years ago

0.11.11

3 years ago

0.11.8

3 years ago

0.11.9

3 years ago

0.11.6

3 years ago

0.11.7

3 years ago

0.11.5

3 years ago

0.11.4

3 years ago

0.11.2

3 years ago

0.11.3

3 years ago

0.11.1

3 years ago

0.11.0

3 years ago

0.10.3

3 years ago

0.10.2

3 years ago

0.10.1

3 years ago

0.10.0

3 years ago

0.9.9

3 years ago

0.9.8

3 years ago

0.9.7

3 years ago

0.9.6

3 years ago

0.9.5

3 years ago

0.9.4

3 years ago

0.9.3

3 years ago

0.9.2

3 years ago

0.9.1

3 years ago

0.9.0

3 years ago

0.8.0

3 years ago

0.7.0

3 years ago

0.6.3

3 years ago

0.6.2

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago