MCPcopy Create free account
hub / github.com/adobe/react-spectrum / ExpandableRowChevron

Function ExpandableRowChevron

packages/@react-spectrum/s2/src/TableView.tsx:1482–1511  ·  view source on GitHub ↗
(props: ExpandableRowChevronProps)

Source from the content-addressed store, hash-verified

1480});
1481
1482function ExpandableRowChevron(props: ExpandableRowChevronProps) {
1483 let ref = useRef<HTMLButtonElement>(null);
1484 let {isExpanded, isHidden} = props;
1485 let {direction} = useLocale();
1486
1487 return (
1488 <Button
1489 {...props}
1490 ref={ref}
1491 slot="chevron"
1492 className={renderProps =>
1493 expandButton({...renderProps, isExpanded, isRTL: direction === 'rtl', isHidden})
1494 }>
1495 <Chevron
1496 className={style({
1497 scale: {
1498 direction: {
1499 ltr: '1',
1500 rtl: '-1'
1501 }
1502 },
1503 '--iconPrimary': {
1504 type: 'fill',
1505 value: 'currentColor'
1506 }
1507 })({direction})}
1508 />
1509 </Button>
1510 );
1511}
1512
1513const editableCell = style<
1514 CellRenderProps &

Callers

nothing calls this directly

Calls 1

useLocaleFunction · 0.90

Tested by

no test coverage detected