Filament.Component behaviour
(filament v0.2.1)
Copy Markdown
Behaviour and macro for defining Filament components.
Components are modules that implement the render/1 callback and can be composed together to build UIs. The defcomponent macro provides convenient syntax for prop declarations and validation.
Summary
Callbacks
Marker function to identify Filament components
Returns component prop metadata
Validates props map at runtime
Types
@type props() :: map()
@type rendered() :: Phoenix.LiveView.Rendered.t()