mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
feat: initial commit
This commit is contained in:
parent
bde7dd644f
commit
72dc38ea56
119 changed files with 14925 additions and 1 deletions
16
src/components/Breadcrumb/Breadcrumb.svelte
Normal file
16
src/components/Breadcrumb/Breadcrumb.svelte
Normal file
|
@ -0,0 +1,16 @@
|
|||
<script>
|
||||
let className = undefined;
|
||||
export { className as class };
|
||||
export let noTrailingSlash = false;
|
||||
|
||||
import { cx } from '../../lib';
|
||||
|
||||
const ariaLabel = $$props['aria-label'] || 'Breadcrumb';
|
||||
const _class = cx('--breadcrumb', noTrailingSlash && '--breadcrumb--no-trailing-slash');
|
||||
</script>
|
||||
|
||||
<nav class={className} aria-label={ariaLabel}>
|
||||
<ol class={_class}>
|
||||
<slot />
|
||||
</ol>
|
||||
</nav>
|
Loading…
Add table
Add a link
Reference in a new issue