@kiva/kv-components

3.107.2 • Public • Published

kv-components

A library of accessible UI components that adhere to Kiva's Design System. Currently built using Vue 2.

Using these Components

  1. Install tailwind into your project
  2. Install components and design definitions: npm install @kiva/kv-components && npm install @kiva/kv-tokens --save-dev
  3. Add our Tailwind config as a preset in your tailwind.config.js
// tailwind.config.js
module.exports = {
	presets: [require("@kiva/kv-tokens/configs/tailwind.config")],
	// Project-specific customizations
	theme: {
		//...
	},
	content: [
		//...
	],
	// ...
};
  1. Import and use the components in your Vue 2 project
<template>
	<div>
		<h2 class="tw-text-secondary">Test Title</h2>
		<kv-button>Lend today</kv-button>
	</div>
</template>

<script>
import KvButton from "kv-ui-elements/kv-components/vue/KvButton.vue";
export default {
	components: {
		KvButton,
	},
};
</script>

Developing Components using Storybook

Pull down the project and fire up Storybook locally

git clone git@github.com:kiva/kv-ui-elements.git
cd kv-ui-elements
npm install
cd @kiva/kv-components
npm run storybook

Writing Stories

  • Write stories in the CSF format
  • Build stories (permutations) that describe the intended look and feel given the components set of inputs (props or slots)
  • Use JsHint to document all props, slots and events so Storybook docs will pick them up

Additional Resources

Recommended VSCode Extensions

Tests

npm run test

Contribution Guidelines

The Kiva UI project is bound by a Code of Conduct.

Kiva welcomes outside contributions to our UI repository. If you have any ideas for a feature or improvement, create an issue and we can discuss whether it makes sense to create a pull request. Thanks for the help!

Readme

Keywords

none

Package Sidebar

Install

npm i @kiva/kv-components

Weekly Downloads

646

Version

3.107.2

License

none

Unpacked Size

3.44 MB

Total Files

361

Last publish

Collaborators

  • michelleinez
  • emuvente
  • matthews-kiva
  • eddieferrer
  • natesulat
  • ryanludwig
  • kiva-ci