Files
component-party/content/4-component-composition/3-slot/qwik/FunnyButton.tsx
Casper Engelmann b88dbe0767 feat(qwik): add component-composition/slot (#115)
* fix(qwik): typescript eslint parser

* feat(qwik): add funny button example
2022-08-27 23:37:18 +02:00

25 lines
517 B
TypeScript

import { component$, Slot } from '@builder.io/qwik';
const FunnyButton = component$(() => {
return (
<button
style={{
background: 'rgba(0, 0, 0, 0.4)',
color: '#fff',
padding: '10px 20px',
fontSize: '30px',
border: '2px solid #fff',
margin: '8px',
transform: 'scale(0.9)',
boxShadow: '4px 4px rgba(0, 0, 0, 0.4)',
transition: 'transform 0.2s cubic-bezier(0.34, 1.65, 0.88, 0.925) 0s',
outline: '0',
}}
>
<Slot />
</button>
);
});
export default FunnyButton;