retro-kit Svelte Themes

Retro Kit

Build retro styled svelte apps

Retro Kit

Buils retro styled svelte apps

📦Installation

npm i retro-kit

☃️Usage

<script> 
  import { Button, Code } from 'retro-kit';

  const handleClick = () => {
    alert("click me");
  };

  let filename = "retro.ts";
  let code = `
    import squareArea from './square';
    import circleArea from './circle';
    console.log('Area of square: ', squareArea(5));
    console.log('Area of circle', circleArea(5));
  `;

</script>

<Button on:click={handleClick} bg="orange">Click Me</Button>

<Code {filename} {code} />

Top categories

Loading Svelte Themes