### Create your component
Your component file must have a default export returning a React component. Tailwind CSS classes are available, including the `dark:` prefix for dark mode styles (e.g., `dark:bg-gray-900`, `dark:text-gray-400`):
```tsx components/CustomFooter.tsx
export default function CustomFooter() {
return (
);
}
```
### Add the component paths to `docs.yml`
```yaml docs.yml
header: ./components/CustomHeader.tsx
footer: ./components/CustomFooter.tsx
```
### Specify your components directory in `docs.yml`
Add your components directory to `docs.yml` so that the Fern CLI can scan your components directory and upload them to the server.
```yml docs.yml
experimental:
mdx-components:
- ./components
```