wiki.techinc.nl/resources/lib/codex
Anne Tomasevich a9dfbe9821 Update Codex from v0.1.0-alpha.7 to v0.1.0-alpha.8
Change-Id: Iba5eaf93626896cb89a1aebfb319b2d24b142aa0
2022-06-23 18:24:04 -04:00
..
codex.es.js Update Codex from v0.1.0-alpha.7 to v0.1.0-alpha.8 2022-06-23 18:24:04 -04:00
codex.style-rtl.css Update Codex from v0.1.0-alpha.7 to v0.1.0-alpha.8 2022-06-23 18:24:04 -04:00
codex.style.css Update Codex from v0.1.0-alpha.7 to v0.1.0-alpha.8 2022-06-23 18:24:04 -04:00
codex.umd.js Update Codex from v0.1.0-alpha.7 to v0.1.0-alpha.8 2022-06-23 18:24:04 -04: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>