Giter VIP home page Giter VIP logo

vue-dsfr's Introduction

VueDsfr

VueDsfr est un portage en Vue 3 du Système de Design Français (ou DSFR) sous forme de bibliothèque de composants. Il peut s'utiliser facilement en tant que plugin.

Comment l’utiliser

TL;DR

Avec npm :

npm init vue-dsfr

Avec pnpm :

pnpm create vue-dsfr

Avec yarn :

yarn create vue-dsfr

Et suivez le guide !

Détails :

Cf. le site officiel

Comment contribuer

TL;DR

Les commits doivent suivre la spécification des Commits Conventionnels

Une PR doit être faite avec une branche à jour avec la branche develop en rebase (et sans merge) avant demande de fusion, et la fusion doit être demandée dans develop.

Détails

Cf le site officiel

Utiliser la bibliothèque dans un projet existant (ou un nouveau projet sans passer par create-vue-dsfr)

Installer la bibliothèque

npm install @gouvminint/vue-dsfr

Utiliser la bibliothèque en tant que plugin Vue 3

import { createApp } from 'vue'
import App from './App.vue'
import '@gouvminint/vue-dsfr/styles'                  // Import des styles globaux
import VueDsfr from '@gouvminint/vue-dsfr'            // Import (par défaut) de la bibliothèque


const app = createApp(App)
  .use(VueDsfr)                                    // Ajout en tant que plugin
  .mount('#app')

Et ensuite, les composants sont utilisables directement dans les composants de l'application :

<template>
  <DsfrHeader
    logo-text="Gouvernement"
    service-title="Bureau des légendes"
  />
  <div class="fr-container">
    <router-view />
  </div>
</template>

Plus d'informations

Veuillez consulter le site officiel pour plus d'informations.

vue-dsfr's People

Contributors

ambroisemaupate avatar antfu avatar baudointran avatar bigrounours avatar cailliaud avatar cailliaudippon avatar clairenollet avatar dabadbunny avatar gideruette avatar laruiss avatar manja2012 avatar nanaki avatar plegaud avatar raphaelseguin avatar sophieaitis avatar thikleek avatar vincentlaine avatar

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.