# Styles

So far, components are rather unattractive. Let's start using [`styled-components`](https://www.styled-components.com).

{% code title="\~/packages/web" %}

```
$ yarn add styled-components @types/styled-components
```

{% endcode %}

{% code title="Link.tsx" %}

```typescript
import * as React from "react";
import styled from "styled-components";

export interface LinkProps {
  id: string;
  uri: string;
  userId: string;
}

const Container = styled.div`
  border: 1px solid gray;
  width: 200px;
  padding: 20px;
`;

export const Link = (props: LinkProps) => (
  <Container>URI: {props.uri}</Container>
);
```

{% endcode %}

![](/files/-LqI0wl-usZg-ZEueL64)

{% hint style="info" %}
Read the [Styled Component documentation](https://www.styled-components.com/docs/).
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tutorial.specian.co.uk/frontend/styles.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
