bracky
Bracky
Single elimination brackets component for vuejs
Demo

You can style the boxes however you want
Usage/Examples
yarn add bracky
or
npm install bracky
<Bracket v-model="rounds">
<template #game="{ game }">
{{game}}
</template>
</Bracket>
<script>
import Bracket from "bracky";
const rounds = [
//Semi finals
{
games: [
{
player1: { id: "1", name: "Competitor 1", winner: false, score: 2 },
player2: { id: "4", name: "Competitor 4", winner: true, score: 2 },
},
{
player1: { id: "5", name: "Competitor 5", winner: false, score: 2 },
player2: { id: "8", name: "Competitor 8", winner: true, score: 2 },
},
],
},
//Third place play off
{
games: [
{
player1: { id: "1", name: "Competitor 1", winner: false, score: 2 },
player2: { id: "5", name: "Competitor 5", winner: true, score: 2 },
},
],
},
//Final
{
games: [
{
player1: { id: "4", name: "Competitor 4", winner: false, score: 2 },
player2: { id: "8", name: "Competitor 8", winner: true, score: 2 },
},
],
},
];
export default {
components: {
Bracket,
},
data() {
return {
rounds: rounds,
};
},
};
</script>
Credits
Based on “Responsive Tournament Bracket” by Jakub Hájek:
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.3.2 | ^2.6.11 | ||
| 0.3.1 | ^2.6.11 | ||
| 0.3.0 | ^2.6.11 | ||
| 0.2.0 | ^2.6.11 | ||
| 0.1.17 | ^2.6.11 | ||
| 0.1.16 | ^2.6.11 | ||
| 0.1.15 | ^2.6.11 | ||
| 0.1.14 | ^2.6.11 | ||
| 0.1.13 | ^2.6.11 | ||
| 0.1.12 | ^2.6.11 | ||
| 0.1.11 | ^2.6.11 | ||
| 0.1.1 | ^2.6.11 | ||
| 0.1.0 | ^2.6.11 |