Giter Site home page Giter Site logo

analyzeplatypus / vue-ios13-segmented-control Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 4.0 2.13 MB

Vue.js radio button component inspired by the new skeuomorphic segmented control in iOS 13

Home Page: https://vue-ios13-segmented-control.netlify.com

JavaScript 22.49% Vue 64.48% HTML 13.03%
vue pwa form-controls segmented-control web-ui skeuomorphic

vue-ios13-segmented-control's Introduction

iOS 13 Segmented Control for Vue

A Vue component inspired by the new skeumorphic segmented control in iOS 13.

Live demo โ€บ

Demo GIF

Install

npm i vue-ios13-segmented-control

Usage

<ios13-segmented-control v-model="value" :segments="segments"/>
import iOS13SegmentedControl from "@/vue-ios13-segmented-control.vue";

export default {
  name: 'MyComponent',
  components: { 
    "ios13-segmented-control": iOS13SegmentedControl
  }
  data() {
    return {
      value: "42",
      segments: [
        {
          title: "Apple Music",
          id: "0"
        },
        {
          title: "Spotify",
          id: "1"
        },
        {
          title: "Deezer",
          id: "2"
        },
      ]
    };
  },
  
};
</script>

Live Development

You'll need NPM and the Vue CLI.

npm install 
npm run serve

Building

You'll need to install Rollup.js to run the build script. Install it with npm install --g rollup

npm run build

Running the build script generate main (.ssr.js), module (.esm.js), and unpkg (.min.js) versions in the dist directory.

Publish with:

npm run build
npm publish

Thank you

Other

Throughout this package, "iOS 13" is universally spelled as a single word: ios13

vue-ios13-segmented-control's People

Contributors

analyzeplatypus avatar dependabot[bot] avatar laurasandoval avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

vue-ios13-segmented-control's Issues

Changing colors and font-size of texts.

I think it would be extremely useful if there is a feature that allows users of this package to change the colors, the font-size of texts, and background colors on each segment.

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.