mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
refactor(tile): forward events, inline functions
Supports #7, #34 - Forward events, style prop - Remove unneeded dispatched events - Remove exported props
This commit is contained in:
parent
5ec9c0089f
commit
a828218d15
9 changed files with 87 additions and 75 deletions
|
@ -1,7 +1,14 @@
|
|||
<script>
|
||||
import { cx } from '../../lib';
|
||||
export let style = undefined;
|
||||
</script>
|
||||
|
||||
<span class={cx('--tile-content__above-the-fold')}>
|
||||
<span
|
||||
on:click
|
||||
on:mouseover
|
||||
on:mouseenter
|
||||
on:mouseleave
|
||||
class={cx('--tile-content__above-the-fold')}
|
||||
{style}>
|
||||
<slot />
|
||||
</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue