Current section

Files

Jump to
chilp src chilp.gleam
Raw

src/chilp.gleam

import chilp/widget
/// Widget component!
/// Before adding this component make sure to call `widget.register()` to register it!
///
/// This component adds in inline CSS, to not do this, use `widget.element("bla", "111", False)` instead.
pub fn widget(instance instance: String, post_id post: String) {
widget.element(instance:, post_id: post, with_styles: True)
}