0.0.15 • Published 11 months ago

odd-components v0.0.15

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

odd-components

Svelte components you might occasionally want!

Install

npm i odd-components

Components

PlayingCard

text

  • no custom icons, uses utf-8

live-demo

DEMO

Svelte

<script>
    import { PlayingCard } from 'odd-components'

    // using TS
    // let my_deck: PlayingCard['$$prop_def']['card'][]

    /** @type {PlayingCard['$$prop_def']['card'][]} */
    let my_deck

    my_deck = [
        { suit: 'HEARTS', value: '10' },
        { suit: 'SPADES', value: 'K' },
        { suit: 'CLUBS', value: 'J' },
        { suit: 'DIAMONDS', value: 'Q' }
    ]
</script>

{#each my_deck as card}
	<PlayingCard {card} />
{/each}
0.0.15

11 months ago

0.0.14

11 months ago

0.0.11

11 months ago

0.0.10

11 months ago

0.0.9

11 months ago

0.0.8

11 months ago

0.0.7

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago