Skip to content

Commit 94ffa34

Browse files
arcostasiurish
authored andcommitted
feat(franzininho): add franzininho
1 parent 3dbb181 commit 94ffa34

File tree

4 files changed

+485
-0
lines changed

4 files changed

+485
-0
lines changed

src/franzininho-element.stories.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { html } from 'lit-html';
2+
import { action } from '@storybook/addon-actions';
3+
import './franzininho-element';
4+
5+
export default {
6+
title: 'Franzininho',
7+
component: 'wokwi-franzininho',
8+
argTypes: {
9+
ledPower: { control: { type: 'boolean' } },
10+
led1: { control: { type: 'boolean' } },
11+
},
12+
args: {
13+
ledPower: true,
14+
led1: false,
15+
},
16+
};
17+
18+
const Template = ({ ledPower, led1 }) =>
19+
html`<wokwi-franzininho
20+
.ledPower=${ledPower}
21+
.led1=${led1}
22+
@button-press=${action('button-press')}
23+
@button-release=${action('button-press')}
24+
>
25+
</wokwi-franzininho>`;
26+
27+
export const Default = Template.bind({});

0 commit comments

Comments
 (0)