mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-23 21:49:23 +01:00
* try to speed up build times * Update deps * Update site deps and fix search issue * Small improvements * fix imports * Remove unused var
37 lines
855 B
Vue
37 lines
855 B
Vue
<script setup>
|
|
import createLucideIcon from 'lucide-vue-next/src/createLucideIcon'
|
|
import { search } from '../../../data/iconNodes'
|
|
|
|
const SearchIcon = createLucideIcon('search', search)
|
|
</script>
|
|
|
|
<template>
|
|
<button class="fake-input">
|
|
<component :is="SearchIcon" class="search-icon"/>
|
|
<slot/>
|
|
</button>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.fake-input {
|
|
background: var(--vp-c-bg-soft);
|
|
border-radius: 8px;
|
|
color: var(--vp-c-text-2);
|
|
padding: 11px 16px;
|
|
height: auto;
|
|
font-size: 14px;
|
|
/* box-shadow: var(--vp-shadow-4), var(--vp-shadow-2); */
|
|
text-align: left;
|
|
border: 1px solid transparent;
|
|
cursor: text;
|
|
display: flex;
|
|
gap: 12px;
|
|
transition: color 0.25s, border-color 0.25s, background-color 0.25s;
|
|
}
|
|
|
|
.fake-input:hover, .fake-input:focus {
|
|
border-color: var(--vp-c-brand);
|
|
background: var(--vp-c-bg-alt);
|
|
}
|
|
</style>
|