Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
🐛 Fix prop name
Browse files Browse the repository at this point in the history
  • Loading branch information
apertureless committed Nov 24, 2016
1 parent c09842a commit faff5de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default {
## Templates & Slots

```html
<accordion-item style="Accordion__item--small">
<accordion-item variant="Accordion__item--small">
<div slot="title">Hello</div>
<div slot="icon"> <svg> .... </svg> </div>
<div slot="content">
Expand All @@ -36,7 +36,7 @@ export default {
</accordion-item>
```

In addition you can use the `style` prop to pass additional classes.
In addition you can use the `variant` prop to pass additional classes.

## Styling

Expand Down
4 changes: 2 additions & 2 deletions src/components/AccordionItem.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="Accordion__item" :class="style">
<div class="Accordion__item" :class="variant">
<div class="Accordion__heading" @click="isOpen = !isOpen">
<div class="Accordion__title">
<slot name="title"></slot>
Expand All @@ -17,7 +17,7 @@
<script>
export default {
props: {
style: {
variant: {
default: '',
type: String,
required: false
Expand Down

0 comments on commit faff5de

Please sign in to comment.