filter

package
v0.0.39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

templ: version: v0.3.977

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter(props ...Props) templ.Component

Filter renders a <form class="filter"> container for radio filter buttons.

func Radio

func Radio(props RadioProps) templ.Component

Radio renders an <input type="radio"> styled as a filter button.

func Reset

func Reset(props ...ResetProps) templ.Component

Reset renders an <input type="reset"> that clears the filter selection.

Types

type Props

type Props struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

Props for the Filter container (form-based).

type RadioProps

type RadioProps struct {
	Class      string
	Attributes templ.Attributes
	Name       string
	Label      string
	Checked    bool
}

RadioProps for a radio option inside a filter.

type ResetProps

type ResetProps struct {
	Class      string
	Attributes templ.Attributes
}

ResetProps for the reset button inside a filter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL