Documentation
¶
Overview ¶
templ: version: v0.3.1001
Index ¶
- func Carousel(props ...Props) templ.Component
- func Content(props ...ContentProps) templ.Component
- func Item(props ...ItemProps) templ.Component
- func Next(props ...NextProps) templ.Component
- func Previous(props ...PreviousProps) templ.Component
- type Align
- type ContentProps
- type ItemProps
- type NextProps
- type Orientation
- type PreviousProps
- type Props
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Content ¶
func Content(props ...ContentProps) templ.Component
func Previous ¶
func Previous(props ...PreviousProps) templ.Component
Types ¶
type ContentProps ¶
type ContentProps struct {
Class string
Attributes templ.Attributes
}
type Orientation ¶
type Orientation string
const ( OrientationHorizontal Orientation = "horizontal" OrientationVertical Orientation = "vertical" )
type PreviousProps ¶
type PreviousProps struct {
ID string
Class string
Attributes templ.Attributes
}
type Props ¶
type Props struct {
ID string
Class string
Attributes templ.Attributes
// Orientation of the scroll axis. Defaults to horizontal.
Orientation Orientation
// Align of the snapped slide within the viewport (embla's align
// option). Defaults to center, like embla.
Align Align
// Loop wraps from the last slide back to the first.
Loop bool
// Autoplay advances the slides automatically (the embla autoplay
// plugin pendant); pauses while hovered.
Autoplay bool
// Interval between autoplay steps in ms. Defaults to 5000.
Interval int
}
Click to show internal directories.
Click to hide internal directories.