Bug: T251664 Bug: T284105 Bug: T295711 Bug: T300154 Bug: T305411 Bug: T305947 Bug: T306932 Bug: T306933 Bug: T308285 Bug: T309826 Bug: T310551 Bug: T310768 Bug: T312025 Bug: T312167 Bug: T313768 Bug: T313773 Bug: T313938 Bug: T313940 Bug: T314728 Bug: T316139 Bug: T316603 Bug: T316895 Bug: T316924 Bug: T317198 Bug: T317235 Bug: T317538 Bug: T318023 Bug: T318282 Bug: T319026 Bug: T319363 Bug: T320361 Change-Id: I51b9769f20ad6d045ad90d55ae74808e7fc0bc5a |
||
|---|---|---|
| .. | ||
| codex.es.js | ||
| codex.style-rtl.css | ||
| codex.style.css | ||
| codex.umd.js | ||
| LICENSE | ||
| README.md | ||
Codex
Codex is a toolkit for building user interfaces within the Wikimedia Design System. Codex contains:
- Vue components, in this package
- 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>