Move to custom SSG instead of eleventy.
This commit is contained in:
8
docs/renderer/nodes/SearchBox.njk
Normal file
8
docs/renderer/nodes/SearchBox.njk
Normal file
@@ -0,0 +1,8 @@
|
||||
{% from "./Node.njk" import Node %}
|
||||
|
||||
{% macro render(node) %}
|
||||
<div class="flex gap-4 px-4 py-2 rounded-md border-2 border-neutral-50/75 focus-within:border-primary-400 focus-within:text-primary-400 bg-transparent text-neutral-50 {{ node.class }}">
|
||||
<input type="text" placeholder="Search" class="w-full bg-transparent outline-none"/>
|
||||
{{ Node('Icon', { icon: 'search' }) }}
|
||||
</div>
|
||||
{% endmacro %}
|
||||
Reference in New Issue
Block a user