Skip to content

Commit 1afd221

Browse files
authored
feat(ui): expose RowLabelProps (#6627)
1 parent aeb4df8 commit 1afd221

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/ui/src/forms/RowLabel/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import { getTranslation } from '@payloadcms/translations'
22
import React from 'react'
33

4-
import type { Props } from './types.js'
4+
import type { RowLabelProps } from './types.js'
5+
export type { RowLabelProps }
56

67
import { RowLabelProvider } from '../RowLabel/Context/index.js'
78

89
const baseClass = 'row-label'
910

10-
export const RowLabel: React.FC<Props> = (props) => {
11+
export const RowLabel: React.FC<RowLabelProps> = (props) => {
1112
const { RowLabelComponent, className, i18n, path, rowLabel, rowNumber } = props
1213

1314
if (RowLabelComponent) {

packages/ui/src/forms/RowLabel/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { I18nClient } from '@payloadcms/translations'
22
import type { LabelProps } from 'payload/types'
33
import type React from 'react'
44

5-
export type Props = {
5+
export type RowLabelProps = {
66
RowLabelComponent?: React.ReactNode
77
className?: string
88
i18n: I18nClient

0 commit comments

Comments
 (0)