Skip to content

Commit

Permalink
Sort fields and add a prop description
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentSmedinga committed May 7, 2024
1 parent bc9edeb commit e9e3ccb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/react/src/OrderedList/OrderedList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ import type { ForwardedRef, OlHTMLAttributes, PropsWithChildren } from 'react'
import { OrderedListItem } from './OrderedListItem'

export type OrderedListProps = {
markers?: boolean
/** Changes the text color for readability on a dark background. */
inverseColor?: boolean
/** Whether the list items show a marker. */
markers?: boolean
/** The size of the ordered list */
size?: 'small'
} & PropsWithChildren<OlHTMLAttributes<HTMLOListElement>>

const OrderedListRoot = forwardRef(
(
{ children, className, inverseColor, size, markers = true, ...restProps }: OrderedListProps,
{ children, className, inverseColor, markers = true, size, ...restProps }: OrderedListProps,
ref: ForwardedRef<HTMLOListElement>,
) => (
<ol
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/UnorderedList/UnorderedList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { UnorderedListItem } from './UnorderedListItem'
export type UnorderedListProps = {
/** Changes the text color for readability on a dark background. */
inverseColor?: boolean
/** Whether the list items show a marker. */
markers?: boolean
/** The size of the unordered list. */
size?: 'small'
Expand Down

0 comments on commit e9e3ccb

Please sign in to comment.