Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@etalab/data.gouv.fr-components

Package Overview
Dependencies
Maintainers
7
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@etalab/data.gouv.fr-components

reusable components to show content from data.gouv.fr

  • 1.14.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
7
Weekly downloads
 
Created
Source

data.gouv.fr Components

Architectures

The package contains ready-made components to use on your data.gouv.fr front-end.

This package works with @gouvfr/dsfr and @gouvminint/vue-dsfr packages.

You should add their styles and js before using these components.

The package requires a call to setupI18n to create its vue-i18n instance. You must add the i18n instance to your Vue instance. You can also use an existing i18n instance instead with setupI18nWithExistingInstance.

You should add the package styles after the DSFR ones or you may encounter unexpected results.

import '@gouvfr/dsfr/dist/dsfr.min.css';
import '@gouvfr/dsfr/dist/utility/utility.min.css';
import '@gouvfr/dsfr/dist/dsfr.module.min.js'; // or vue-dsfr
import '@etalab/data.gouv.fr-components/dist/style.css';
import { setupI18n } from '@etalab/data.gouv.fr-components';

import { createApp } from 'vue';
import App from './App.vue';

const i18n = setupI18n();

createApp(App)
.use(i18n)
.mount('#app');

window.dsfr.start(); // nothing here if you're using vue-dsfr

env variables

You can customize how this package work with env variables during build and runtime (with setupComponents function).

FAQs

Package last updated on 07 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc