Coder Social home page Coder Social logo

elcobvg / svelte-bulma-forms Goto Github PK

View Code? Open in Web Editor NEW
35.0 35.0 1.0 151 KB

Bulma form components for Svelte

Home Page: http://svelte-bulma-forms.surge.sh/

License: MIT License

JavaScript 14.64% HTML 85.36%
bulma bulma-css forms javascript svelte svelte-components sveltejs ui

svelte-bulma-forms's People

Contributors

elcobvg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

crisgol

svelte-bulma-forms's Issues

Layout inputgroups

CSS issue:

  • Doesn't work as supposed to in vertical layout
  • Also messed up on mobile

Label positions

In vertical layout, following elements have incorrect label positions

  • fields with add-on
  • select
  • radio group / checkbox group

Straight up does not work

[!] (svelte plugin) ParseError: Directive value must be a JavaScript expression enclosed in curly braces
node_modules\svelte-bulma-forms\src\fields\AutoCompleteField.html
22:         {rounded}
23:         {readonly}
24:         on:change="changeValue(event)"
                       ^
25:         on:focus="set({ hasFocus: true })"
26:         on:blur="set({ hasFocus: false })"
ParseError: Directive value must be a JavaScript expression enclosed in curly braces
    at error$1 (C:\Users\acer\Documents\GitHub\ticket-caller\node_modules\svelte\compiler.js:13483:20)
    at Parser$2.error (C:\Users\acer\Documents\GitHub\ticket-caller\node_modules\svelte\compiler.js:13559:10)
    at read_attribute (C:\Users\acer\Documents\GitHub\ticket-caller\node_modules\svelte\compiler.js:12783:25)
    at tag (C:\Users\acer\Documents\GitHub\ticket-caller\node_modules\svelte\compiler.js:12606:26)
    at new Parser$2 (C:\Users\acer\Documents\GitHub\ticket-caller\node_modules\svelte\compiler.js:13518:22)
    at parse$2 (C:\Users\acer\Documents\GitHub\ticket-caller\node_modules\svelte\compiler.js:13649:21)
    at compile (C:\Users\acer\Documents\GitHub\ticket-caller\node_modules\svelte\compiler.js:23734:12)
    at preprocessPromise.then.code (C:\Users\acer\Documents\GitHub\ticket-caller\node_modules\rollup-plugin-svelte\index.js:236:22)

Add tests

Repo is growing... Time to add some tests!

Password hide/reveal switch

For bit better UX: switch on right side of input field.
(FA icons: eye and eye-slash)
Caveat: validation's check icon is also on the right side

Password confirmation

Add prop and validation function to PasswordField to compare it with another PasswordField for confirmation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.