Open fadrian06 opened 5 months ago
class MyComponent {
function render(): string {
// render html
}
function styles(): string {
return <<<css
body {
color-scheme: light dark;
}
css;
/* or if you want to link and external file, or you want to add attributes to the <style> or <link>
return <<<html
<style media="print">
</style>
html
*/
}
}
Componetization syntax
Current:
Requested🙌🏽🔥
f
prefix can be customizable/views/components
is taken by default and map functions or classes