Bug: T295605 Bug: T312023 Bug: T312024 Bug: T312025 Bug: T313933 Bug: T323684 Bug: T323753 Bug: T324397 Bug: T324792 Bug: T324900 Change-Id: I57c8f5f8c3933bbbd229bc566a07fc37378810fc
953 B
953 B
Codex
Codex is a toolkit for building user interfaces within the Wikimedia Design System. Codex contains:
- Vue components, in this package
- Design tokens, in the
@wikimedia/codex-tokenspackage - Icons, in the
@wikimedia/codex-iconspackage
For more details, read the Codex documentation.
Using Codex components
To use a component, import it from this package:
// If using ES modules:
import { CdxButton } from '@wikimedia/codex';
// or, if using CommonJS:
const { CdxButton } = require( '@wikimedia/codex' );
then pass it into the components option of your Vue component:
<template>
<div>
<cdx-button action="progressive" type="primary">
Click me!
</cdx-button>
</div>
</template>
<script>
import { defineComponent } from 'vue';
import { CdxButton } from '@wikimedia/codex';
export default defineComponent( {
components: {
CdxButton
},
// ...
} );
</script>