# Widget

> One section of a blog's sidebar: a Widget.Heading under a brand rule, then its content (recent posts, categories, a tag cloud, a sign-up).

```ts
import { Widget } from "@sdxc/ui/blog";
```

Renders a `<section>` named by its Widget.Heading, stacking the heading and the
rest of its children. Restyle the heading and its rule through
Widget.CustomProperties on the widget.

## Examples

```tsx
<Widget>
	<Widget.Heading>Recent posts</Widget.Heading>
	<ul>…</ul>
</Widget>
```

## Props

Also accepts everything in `TagProps<"section">`.


### Widget.Heading

The widget's title, ruled above in the brand colour and set small in upper case.

| Prop | Type | Description |
| --- | --- | --- |
| `level?` | `HeadingLevel` | Heading level; defaults to the ambient `HeadingScope`, or 2 without one. |
| `children?` | `RemixNode` |  |

Also accepts everything in `TagProps<"h2">`.

