React
Is new design vision part implemented using new tokens?
React
Is new design vision part implemented using new tokens?
import { ActionToolbar, ActionToolbarButton, BreakpointRangeWithFallback, getBreakpointRangeValueFallback, isAtLeastTablet } from '../index';
const breakpointRange = useBreakpointRange<BreakpointRangeWithFallback>();
const isCompact = !isAtLeastTablet(getBreakpointRangeValueFallback(breakpointRange));
<ActionToolbar
variant="floating"
disabled={disabled}
leftSide={disabled ? '0 items selected' : '2 items selected'}
rightSide={
<>
<ActionToolbarButton disabled={disabled} icon={IconName.Edit} accessibleText="Edit">
{!isCompact && 'Edit'}
</ActionToolbarButton>
<ActionToolbarButton disabled={disabled} icon={IconName.Delete} accessibleText="Delete">
{!isCompact && 'Delete'}
</ActionToolbarButton>
</>
}
/>;