Skip to content

Commit

Permalink
feat(textarea): support for disabled focus ring (#1353)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanl17 authored Jul 2, 2024
1 parent 54f3cc1 commit 5fa6f31
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/primitives/textArea/textArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ import {ResponsiveRadiusProps} from '../types'
* @public
*/
export interface TextAreaProps extends ResponsiveRadiusProps {
/**
* @beta
*/
__unstable_disableFocusRing?: boolean
border?: boolean
customValidity?: string
fontSize?: number | number[]
Expand Down Expand Up @@ -66,6 +70,7 @@ export const TextArea = forwardRef(function TextArea(
padding = 3,
radius = 2,
weight,
__unstable_disableFocusRing,
...restProps
} = props

Expand Down Expand Up @@ -99,6 +104,7 @@ export const TextArea = forwardRef(function TextArea(
/>
<Presentation
$radius={useArrayProp(radius)}
$unstableDisableFocusRing={__unstable_disableFocusRing}
$scheme={rootTheme.scheme}
$tone={rootTheme.tone}
data-border={border ? '' : undefined}
Expand Down

0 comments on commit 5fa6f31

Please sign in to comment.