---
title: Focus Ring
description: "Yamada UI provides features to apply various styles when an element is focused."
---
## Overview
A focus ring is used to identify the element that is currently focused. Yamada UI provides `focusRing` and `focusVisibleRing` to easily configure the style of the focus ring.
## Usage
### focusRing
`focusRing` is applied to `&:is(:focus, [data-focus])`.
```tsx
```
### focusVisibleRing
`focusVisibleRing` is applied to `&:is(:focus-visible, [data-focus-visible])`.
```tsx
```
:::note
By default, Yamada UI sets `focusVisibleRing="outline"` for all elements via [global styles](https://yamada-ui.com/docs/styling/global-styles.md). Therefore, you do not need to set `focusVisibleRing` individually for each element.
:::
## Customize
### Change Variant
```tsx
{(value, index) => (
)}
```
### Change Color
To change the color, set a value to `focusRingColor`.
```tsx
```
### Change Width
To change the width, set a value to `focusRingWidth`.
```tsx
```
### Change Style
To change the style, set a value to `focusRingStyle`.
```tsx
```
### Change Offset
To change the offset, set a value to `focusRingOffset`.
```tsx
```