---
title: Use links in bricks
category: Custom bricks
order: 11
status: published
summary: Create a LinkButton brick using the React Bricks Link component and editable text.
estimatedTime: 5 min
keywords: link links
---
## What you'll build
In this how-to, you'll create a `LinkButton` brick and use the React Bricks `` component to make it clickable.
We'll build it step by step:
- start with a simple `
` with fixed text
- turn it into a link with React Bricks ``
- make the label editable with ``
- add sidebar controls for the path and button style
At the end, you'll have a reusable link-style button brick with editable text and configurable settings.
## Why use `Link` in a brick
When you need a link inside a React Bricks brick, you should use the React Bricks `Link` component: import it from `react-bricks/rsc` in Next.js App Router projects, or from `react-bricks/astro` in Astro projects.
```tsx
import { Link } from 'react-bricks/rsc'
```
This is important because React Bricks integrates that component with the visual editor.
In practice, this means:
- links work correctly inside editable bricks
- editors can select and edit linked content more safely in the admin interface
- React Bricks can use the underlying platform link behavior correctly
So even though this brick looks like a button, we still use `Link`, because semantically it navigates to another page or path.
## Start with a simple brick
Create a new `LinkButton.tsx` file and start from a very simple brick:
```tsx
import { types } from 'react-bricks/rsc'
const LinkButton: types.Brick = () => {
return (
Click me
)
}
LinkButton.schema = {
name: 'ws-button',
label: 'Link Button',
}
export default LinkButton
```
At this point, the brick only renders styled static text.
## Turn the brick into a link
Now replace the outer `