chore: lift components folder

This commit is contained in:
Eric Liu 2020-07-19 09:06:08 -07:00
commit 2200b29b92
301 changed files with 57 additions and 76 deletions

View file

@ -0,0 +1,24 @@
<script>
export let href = undefined;
export let isCurrentPage = false;
import { Link } from "../Link";
</script>
<li
class:bx--breadcrumb-item={true}
class:bx--breadcrumb-item--current={isCurrentPage && $$restProps['aria-current'] !== 'page'}
{...$$restProps}
on:click
on:mouseover
on:mouseenter
on:mouseleave>
{#if href}
<Link {href} aria-current={$$restProps['aria-current']}>
<slot />
</Link>
{:else}
<slot
props={{ 'aria-current': $$restProps['aria-current'], class: 'bx--link' }} />
{/if}
</li>