wiki.techinc.nl/resources/lib/codex
Volker E f1f3473fc2 Update Codex from v0.2.1 to v0.2.2
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
2022-10-25 16:00:03 -07:00
..
codex.es.js Update Codex from v0.2.1 to v0.2.2 2022-10-25 16:00:03 -07:00
codex.style-rtl.css Update Codex from v0.2.1 to v0.2.2 2022-10-25 16:00:03 -07:00
codex.style.css Update Codex from v0.2.1 to v0.2.2 2022-10-25 16:00:03 -07:00
codex.umd.js Update Codex from v0.2.1 to v0.2.2 2022-10-25 16:00:03 -07:00
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-icons package

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>