Skip to content

SvelteKit Search and Filter Page Example #11

@karimfromjordan

Description

@karimfromjordan

This surprisingly came up several times this week on Discord — a page that should fetch, filter and search some data through a <form> and search params in load. My idea was a simple products, words, fruits etc. page which:

  • allows you to filter items by type using checkboxes
  • has a <input type="search" /> to search for specific items
  • when JS is available <input type="search" /> submits the form on:input (debounced)
  • checkboxes etc. submit the form on:change
  • products/words are stored in an array or Map that acts as a database

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions