Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alpine-plugin-search-ui

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alpine-plugin-search-ui

Plugin to create a search UI on an input element with Alpine.js

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Search UI Plugin Alpine.js

This plugin creates a custom directive x-search-ui to implement a search user interface on an input.

How to use

Installation

Via CDN

<script defer src="https://cdn.jsdelivr.net/npm/alpine-plugin-search-ui@1.x.x/dist/cdn.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>

Via npm

npm i alpine-plugin-search-ui
import Alpine from 'alpinejs'
import searchUiPlugin from 'alpine-plugin-search-ui'; 

window.Alpine = Alpine
Alpine.plugin(searchUiPlugin)
Alpine.start()

Using the x-search-ui directive

<div x-data>
  <div x-search-ui class="search-container">
    <input type="text" placeholder="Search...">
  </div>
</div>

Modifiers

To change icon color use these modifiers:

  • black
  • white
<div x-data>
  <div x-search-ui.black class="search-container">
    <input type="text" placeholder="Search...">
  </div>
</div>

FAQs

Package last updated on 09 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc