Footer Brand
Footer Brand component
Install
npx ui8kit add footer-brandPulls in: compose, group, inline, kit-box, kit-text, lucide-icon, stack, text, utils
Preview
Northwind
Sites from one set of blocks, in every runtime.
Code
Point the CLI at this runtime once, then add the item:
npx ui8kit init --yes --framework svelte --dir src --registry-url https://registry.buildy.tw/svelte --strict-cdnnpx ui8kit add footer-brand<!-- Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT. -->
<!-- The brand of FooterSplit: a mark and the brand word over the tagline. -->
<script lang="ts" module>
import type { Snippet } from "svelte";
export type FooterBrandProps = {
brand: string;
tagline: string;
};
</script>
<script lang="ts">
import Group from "../compose/Group.svelte";
import Inline from "../compose/Inline.svelte";
import LucideIcon from "../icons/LucideIcon.svelte";
import Stack from "../compose/Stack.svelte";
import Text from "../compose/Text.svelte";
let { brand, tagline }: FooterBrandProps = $props();
</script>
<Stack gap="2" align="start" data-slot="footer-brand">
<Group gap="2" align="center">
<Inline class="flex size-8 items-center justify-center rounded bg-foreground text-background">
<LucideIcon name="layers" size={16} />
</Inline>
<Text size="xl" weight="bold">
{brand}
</Text>
</Group>
<Text size="sm" class="text-muted-foreground">
{tagline}
</Text>
</Stack>
Point the CLI at this runtime once, then add the item:
npx ui8kit init --yes --framework react --dir src --registry-url https://registry.buildy.tw/react --strict-cdnnpx ui8kit add footer-brand// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
/** The brand of FooterSplit: a mark and the brand word over the tagline. */
import { type ReactNode } from "react";
import { Group, Inline, Stack, Text } from "../compose";
import { LucideIcon } from "../icons/LucideIcon";
export type FooterBrandProps = {
brand: string;
tagline: string;
};
export function FooterBrand({ brand, tagline }: FooterBrandProps) {
return (
<Stack gap="2" align="start" data-slot="footer-brand">
<Group gap="2" align="center">
<Inline className="flex size-8 items-center justify-center rounded bg-foreground text-background">
<LucideIcon name="layers" size={16} />
</Inline>
<Text size="xl" weight="bold">
{brand}
</Text>
</Group>
<Text size="sm" className="text-muted-foreground">
{tagline}
</Text>
</Stack>
);
}
Point the CLI at this runtime once, then add the item:
npx ui8kit init --yes --framework vue --dir src --registry-url https://registry.buildy.tw/vue --strict-cdnnpx ui8kit add footer-brand<!-- Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT. -->
<!-- The brand of FooterSplit: a mark and the brand word over the tagline. -->
<script lang="ts">
export type FooterBrandProps = {
brand: string;
tagline: string;
};
</script>
<script setup lang="ts">
import Group from "../compose/Group.vue";
import Inline from "../compose/Inline.vue";
import LucideIcon from "../icons/LucideIcon.vue";
import Stack from "../compose/Stack.vue";
import Text from "../compose/Text.vue";
const { brand, tagline } = defineProps<FooterBrandProps>();
</script>
<template>
<Stack gap="2" align="start" data-slot="footer-brand">
<Group gap="2" align="center">
<Inline class="flex size-8 items-center justify-center rounded bg-foreground text-background">
<LucideIcon name="layers" :size="16" />
</Inline>
<Text size="xl" weight="bold">
{{ brand }}
</Text>
</Group>
<Text size="sm" class="text-muted-foreground">
{{ tagline }}
</Text>
</Stack>
</template>
Point the CLI at this runtime once, then add the item:
npx ui8kit init --yes --framework solid --dir src --registry-url https://registry.buildy.tw/solid --strict-cdnnpx ui8kit add footer-brand// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
/** The brand of FooterSplit: a mark and the brand word over the tagline. */
import { type JSX } from "solid-js";
import { Group, Inline, Stack, Text } from "../compose";
import { LucideIcon } from "../icons/LucideIcon";
export type FooterBrandProps = {
brand: string;
tagline: string;
};
export function FooterBrand({ brand, tagline }: FooterBrandProps) {
return (
<Stack gap="2" align="start" data-slot="footer-brand">
<Group gap="2" align="center">
<Inline class="flex size-8 items-center justify-center rounded bg-foreground text-background">
<LucideIcon name="layers" size={16} />
</Inline>
<Text size="xl" weight="bold">
{brand}
</Text>
</Group>
<Text size="sm" class="text-muted-foreground">
{tagline}
</Text>
</Stack>
);
}
Point the CLI at this runtime once, then add the item:
npx ui8kit init --yes --framework templ --dir src --registry-url https://registry.buildy.tw/templ --strict-cdnnpx ui8kit add footer-brand// Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
// Source: packages/compose-gen/specs/organisms/footer-brand.json
package blocks
import (
"github.com/ui8kit/codegen/generated/templ/ui/box"
"github.com/ui8kit/codegen/generated/templ/compose"
"github.com/ui8kit/codegen/generated/templ/icons"
"github.com/ui8kit/codegen/generated/templ/ui/text"
uiutils "github.com/ui8kit/codegen/generated/templ/orgutils"
)
// FooterBrandProps are the props of FooterBrand; the values are the JSON shapes of the TypeScript props.
type FooterBrandProps struct {
Brand any `json:"brand"`
Tagline any `json:"tagline"`
}
// The brand of FooterSplit: a mark and the brand word over the tagline.
templ FooterBrand(p FooterBrandProps) {
{{ vBrand := p.Brand }}
{{ vTagline := p.Tagline }}
@compose.Stack(compose.StackProps{Gap: "2", Align: "start", BoxProps: box.BoxProps{Attrs: uiutils.Attrs("data-slot", "footer-brand")}}) {
@compose.Group(compose.GroupProps{Gap: "2", Align: "center", BoxProps: box.BoxProps{}}) {
@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: "flex size-8 items-center justify-center rounded bg-foreground text-background"}}) {
@icons.LucideIcon(icons.LucideIconProps{Name: "layers", Size: 16})
}
@compose.Text(compose.TextProps{Size: "xl", Weight: "bold", TextProps: text.TextProps{}}) {
{ uiutils.Text(vBrand) }
}
}
@compose.Text(compose.TextProps{Size: "sm", TextProps: text.TextProps{Class: "text-muted-foreground"}}) {
{ uiutils.Text(vTagline) }
}
}
}
Point the CLI at this runtime once, then add the item:
npx ui8kit init --yes --framework twig --dir src --registry-url https://registry.buildy.tw/twig --strict-cdnnpx ui8kit add footer-brand{#- Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
Source: packages/compose-gen/specs/organisms/footer-brand.json
The brand of FooterSplit: a mark and the brand word over the tagline.
Props (p): brand, tagline. -#}
{%- set v_brand = (p.brand ?? null) -%}
{%- set v_tagline = (p.tagline ?? null) -%}
{%- set c_5 -%}
{%- set c_3 -%}
{%- set c_1 -%}
{{ include('icons/LucideIcon.html.twig', {'name': 'layers', 'size': 16}, with_context = false) }}
{%- endset -%}
{{ include('compose/Inline.html.twig', {'class': 'flex size-8 items-center justify-center rounded bg-foreground text-background', 'children': c_1}, with_context = false) }}
{%- set c_2 -%}
{{ og_text(v_brand) }}
{%- endset -%}
{{ include('compose/Text.html.twig', {'size': 'xl', 'weight': 'bold', 'children': c_2}, with_context = false) }}
{%- endset -%}
{{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'children': c_3}, with_context = false) }}
{%- set c_4 -%}
{{ og_text(v_tagline) }}
{%- endset -%}
{{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_4}, with_context = false) }}
{%- endset -%}
{{ include('compose/Stack.html.twig', {'gap': '2', 'align': 'start', 'attrs': og_attrs(['data-slot', 'footer-brand']), 'children': c_5}, with_context = false) }}
Point the CLI at this runtime once, then add the item:
npx ui8kit init --yes --framework latte --dir src --registry-url https://registry.buildy.tw/latte --strict-cdnnpx ui8kit add footer-brand{* Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
Source: packages/compose-gen/specs/organisms/footer-brand.json
The brand of FooterSplit: a mark and the brand word over the tagline.
Props (p): brand, tagline. *}
{var $v_brand = ($p['brand'] ?? null)}
{var $v_tagline = ($p['tagline'] ?? null)}
{capture $c_5}
{capture $c_3}
{capture $c_1}
{=og_include('icons/LucideIcon.latte', ['name' => 'layers', 'size' => 16])|noescape}
{/capture}
{=og_include('compose/Inline.latte', ['class' => 'flex size-8 items-center justify-center rounded bg-foreground text-background', 'children' => (string) $c_1])|noescape}
{capture $c_2}
{=og_text($v_brand)}
{/capture}
{=og_include('compose/Text.latte', ['size' => 'xl', 'weight' => 'bold', 'children' => (string) $c_2])|noescape}
{/capture}
{=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'center', 'children' => (string) $c_3])|noescape}
{capture $c_4}
{=og_text($v_tagline)}
{/capture}
{=og_include('compose/Text.latte', ['size' => 'sm', 'class' => 'text-muted-foreground', 'children' => (string) $c_4])|noescape}
{/capture}
{=og_include('compose/Stack.latte', ['gap' => '2', 'align' => 'start', 'attrs' => og_attrs(['data-slot', 'footer-brand']), 'children' => (string) $c_5])|noescape}
Point the CLI at this runtime once, then add the item:
npx ui8kit init --yes --framework jinja2 --dir src --registry-url https://registry.buildy.tw/jinja2 --strict-cdnnpx ui8kit add footer-brand{#- Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
Source: packages/compose-gen/specs/organisms/footer-brand.json
The brand of FooterSplit: a mark and the brand word over the tagline.
Props (p): brand, tagline. -#}
{%- set v_brand = og_def(p['brand'], none) -%}
{%- set v_tagline = og_def(p['tagline'], none) -%}
{%- set c_5 -%}
{%- set c_3 -%}
{%- set c_1 -%}
{{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'layers', 'Size': 16}}) }}
{%- endset -%}
{{ og_include('compose/inline.html.j2', {'p': {'Class': 'flex size-8 items-center justify-center rounded bg-foreground text-background'}, 'children': c_1}) }}
{%- set c_2 -%}
{{ og_text(v_brand) }}
{%- endset -%}
{{ og_include('compose/text.html.j2', {'p': {'Size': 'xl', 'Weight': 'bold'}, 'children': c_2}) }}
{%- endset -%}
{{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'center'}, 'children': c_3}) }}
{%- set c_4 -%}
{{ og_text(v_tagline) }}
{%- endset -%}
{{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_4}) }}
{%- endset -%}
{{ og_include('compose/stack.html.j2', {'p': {'Gap': '2', 'Align': 'start', 'Attrs': og_attrs(['data-slot', 'footer-brand'])}, 'children': c_5}) }}
Props
Names and types come from the xgen specs of the source. Standard HTML attributes (id, role, tabIndex, aria-*) pass through to the root element; the class prop is className in React.
The brand of FooterSplit: a mark and the brand word over the tagline.
| Prop | Type | Default | Description |
|---|---|---|---|
| brand (required) | string | - | |
| tagline (required) | string | - |