1.13.12 • Published 17 days ago

@etalab/data.gouv.fr-components v1.13.12

Weekly downloads
-
License
MIT
Repository
github
Last release
17 days ago

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).

1.13.12

17 days ago

1.13.11

25 days ago

1.13.10

30 days ago

1.13.9

1 month ago

1.13.8

1 month ago

1.13.7

3 months ago

1.13.6

3 months ago

1.13.4

4 months ago

1.13.2

4 months ago

1.13.3

4 months ago

1.13.1

4 months ago

1.13.0

4 months ago

1.12.2

4 months ago

1.12.1

4 months ago

1.12.0

4 months ago

1.11.9

5 months ago

1.11.8

5 months ago

1.11.4

5 months ago

1.11.7

5 months ago

1.11.6

5 months ago

1.11.5

5 months ago

1.11.3

5 months ago

1.11.2

5 months ago

1.11.1

5 months ago

1.11.0

5 months ago

1.10.1

5 months ago

1.10.0

5 months ago

1.9.0

5 months ago

1.8.2

5 months ago

1.8.1

5 months ago

1.8.0

5 months ago

1.7.0

5 months ago

1.6.0

5 months ago

1.5.6

5 months ago

1.5.5

5 months ago

1.5.4

5 months ago