Lissome.Component (Lissome v0.3.1)
View SourceSummary
Functions
Renders a lustre app.
Functions
Renders a lustre app.
Attributes
name
(:atom
) (required) - The name of the Gleam module to render relative to the src directory.Examples include:my_lustre_app
, and:pages@home
.flags
(:map
) - Initial values to pass to the Gleam module. Defaults to%{}
.init_fn
(:atom
) - The name of your Gleam function that initializes the model. Defaults to:init
.view_fn
(:atom
) - The name of your Gleam function that renders the view. Defaults to:view
.flags_type
(:atom
) - The name of your Gleam type that represents the flags your init function receives. Defaults to:model
.id
(:string
) - The id Lustre targets to render into. Defaults to"app"
.class
(:string
) - The class name to apply to the rendered app. Defaults to""
.ssr
(:boolean
) - Whether to render the app on the server side. Defaults tofalse
.