Skip to main content
Brand and assets
Build
Monitor and contribute
/
Component library
  • All components
  • Buttons & actions
  • Forms & inputs
  • Layout & containers
  • Overlays
  • Feedback & status
  • Data display
  • Typography
  • Accessibility
  • Contrib
    • AccordionNext
    • ClickableCard
    • CollapsibleSection
    • HighlightBox
    • LineBarChart
    • ListItemNext
    • Markdown
    • MultiStepNavigation
    • Number
    • PhoneNumberInput
    • PromoCard
    • RatingWithStars
    • ScreenNext
    • SegmentedControl
    • SortableColumnHeader
    • TabListNext
    • TableHeader
    • Tip
    • UniversalEmoji
  • Deprecated
  • Contrib
  • SortableColumnHeader

A table column header that sorts. Announces the column and its current sort direction to screen readers.

Health
Component health
Source
View on Github
Playground
No Example
Accessibility
unknown
Platform
Universal
Contrib Component
SortableColumnHeader is a community contributed component. We encourage its usage but it might not give the same level of robustness (accessibility, tests, ...) than core Murray components.
  • Overview
  • Props

SortableColumnHeader

The SortableColumnHeader component is available for universal (web and mobile) applications.

Overview​

See the component source code for API details and examples.

tip
This component is universal, its usage is the same on web and mobile.

SortableColumnHeader props

NameTypeDefault ValueDescriptionUsage count
children*ReactNodeThe content to display in the button
color
4 possibilitiesundefined`$${string}`Variable<any>OpaqueColorValue
$grey700The color of the text
columnLabel*stringThe localized name of the column to be sorted Used for accessibility and display purposes
onPress(() => void)undefinedCallback when the button is pressed
size
8 possibilitiesundefinednumber"$text100""$text200""$text300""$text400""$text500"Variable<any>
$text100The size of the text
sortDirection*SortDirectionThe current sort direction Used to determine the caret icon state
transform
6 possibilities"none""capitalize""uppercase""lowercase""unset"undefined
The text transform Pass "uppercase" to match the column heads Murray's own Table renders
weightTextWeightundefinedThe weight of the text Pass "medium" to match the column heads Murray's own Table renders
Edit this page
Previous
SegmentedControl
Next
TabListNext
  • Overview