mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
chore: lift components folder
This commit is contained in:
parent
76df51674d
commit
2200b29b92
301 changed files with 57 additions and 76 deletions
27
src/UIShell/GlobalHeader/HeaderActionLink.svelte
Normal file
27
src/UIShell/GlobalHeader/HeaderActionLink.svelte
Normal file
|
@ -0,0 +1,27 @@
|
|||
<script>
|
||||
export let href = undefined;
|
||||
export let type = undefined;
|
||||
export let icon = undefined;
|
||||
export let linkIsActive = undefined;
|
||||
|
||||
import { Icon } from "../../Icon";
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.action-link {
|
||||
text-align: center;
|
||||
align-items: center;
|
||||
vertical-align: middle;
|
||||
justify-content: center;
|
||||
padding-top: 10px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<a
|
||||
aria-label={type}
|
||||
class:bx--header__action={true}
|
||||
class:bx--header__action--active={linkIsActive}
|
||||
class:action-link={true}
|
||||
{href}>
|
||||
<Icon {...icon} />
|
||||
</a>
|
Loading…
Add table
Add a link
Reference in a new issue