Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

🐛 Oruga is a lightweight library of UI components without CSS framework dependency

License

NotificationsYou must be signed in to change notification settings

justwatchcom/oruga

 
 

Repository files navigation

Oruga UI is like a caterpillar, minimal and yet functional. It's in your hands turning it into a butterfly

(🐛) => 🦋

Oruga is a lightweight library of UI components forVue.js without CSS framework dependency

Oruga Next version for Vue 3.x

Features

  • CSS framework agnostic: No dependency on a specific CSS framework/library but you can easily integrate the components with one of them because they are fully customizable in different ways
  • Components with steroids: most of the components aren't a simple wrapper of native elements but they add new and custom features
  • Lightweight: no other internal dependency and import only components that you need

Oruga doesn't depend on any specific style or CSS framework (like Bootstrap, Bulma, TailwindCSS etc...) and it doesn't provide any grid system or CSS utility, it just offer a set of components easy to customize. Oruga wants you to focus only on UI/UX aspects of your application and be totally flexible to future changes without having to touch a line of JavaScript.

Documentation

Browseonline documentation here.

💅 For more info about components customization,read carefully the "customization" section in the documentation.

🕹 To see Oruga in action, go to theExample section in the documentation.

Note: the documentation source code is in thedocs directory, it serves as the demo as well.

Browser support

🌎 Oruga has been tested in all major browsers

ChromeFirefoxIEOperaSafariInternet Explorer
Latest ✔Latest ✔10+ ✔Latest ✔6.1+ ✔IE 11 ✔

Quick start

🐛 Oruga is available forVue.jsversion 2.6+ orversion 3.x

Setup Oruga

Vue 2

Install Oruga

npm install @oruga-ui/oruga

Then import the full bundle

importVuefrom'vue';importOrugafrom'@oruga-ui/oruga';import'@oruga-ui/oruga/dist/oruga.css';Vue.use(Oruga);

or individual components (tree shaking)

importVuefrom'vue';import{Field,Input}from'@oruga-ui/oruga';import'@oruga-ui/oruga/dist/oruga.css';Vue.use(Field);Vue.use(Input);

Vue 3

Install Oruga

npm install @oruga-ui/oruga-next

Then import the full bundle

import{createApp}from'vue'importOrugafrom'@oruga-ui/oruga-next';import'@oruga-ui/oruga-next/dist/oruga.css';createApp(...).use(Oruga);

or individual components (tree shaking)

importVuefrom'vue'import{Field,Input}from'@oruga-ui/oruga'import'@oruga-ui/oruga/dist/oruga.css'createApp(...).use(Field).use(Input)

Customization

Pleaseread carefully the "customization" section in Oruga documentation.

If you want to see an example with a fully customized registration form usingTailwind,Bulma,Bootstrap orMaterial CSS framework have a look at the officialOruga multiframework example(source code availablehere) or if you're more familiar with TailwindCSS 2 give our officialTailwindCSS Demo a try (source codehere)

Using Oruga with Nuxt

Oruga provides aNuxt.js module to easily integrate the library in your Nuxt.js app.

Add@oruga-ui/oruga/nuxt tomodules section of yournuxt.config.js file.

module.exports={modules:['@oruga-ui/oruga/nuxt']}

You can also extend and/or override classes in this section (see how toadd new classes oroverride existing classes in Oruga)

module.exports={modules:[['@oruga-ui/oruga/nuxt',{button:{override:true}}]]}

Alternatively you can use Nuxt.js plugins system adding a file (e.g.oruga.js) in yourplugins folder containing

importVuefrom'vue'importOrugafrom'@oruga-ui/oruga'import'@oruga-ui/oruga/dist/oruga.css'Vue.use(Oruga)

To make this plugin available in your app, add this file to theplugins array in yournuxt.config.js

plugins:[{src:'~plugins/oruga.js'}]

To understand how the plugins work with Nuxt.js, take a look at theNuxtJS plugin documentation.

Take a look at theofficial NuxtJS + Oruga example.

Contributing

Please see thecontributing guidelines.

Versioning

Oruga usesSemantic Versioning 2.0.0 for package versions.

While it's still in beta, versions will follow this pattern:v0.Y.Z, where:

  • Y: Major (breaking changes)
  • Z: Minor or patch

Roadmap

Core Team


Walter Tommasi


Andrea Stagi

Contributors

Thank you to everyone involved for improving this project, day by day 💚

Credits

Oruga logo designed byMatteo Guadagnini

Oruga svg images for Checkbox and Radio components and Holidays assets created byFabrizio Masini

License

Code released underMIT license.

About

🐛 Oruga is a lightweight library of UI components without CSS framework dependency

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue58.7%
  • JavaScript26.2%
  • SCSS9.4%
  • TypeScript5.6%
  • Stylus0.1%

[8]ページ先頭

©2009-2025 Movatter.jp