Shortcuts are UI elements that allow users to quickly select pre-defined time ranges or filter presets.
Shortcut component is a specialized Button designed for shortcut actions. It inherits base functionality from the Button component, ensuring consistency and accessibility across the design system.Button component is that Shortcut is always set to the outline variant, with no option to modify it.color="neutral" for inactive shortcut.color="primary"for active shortcut.default and active states, use a state variable and update its color on click:sm, md, lg, and responsive and can be changed by passing the size prop.lg.responsive, the component will be responsive to the viewport.Screen prefix | Screen width | Component size |
|---|---|---|
|
| sm |
|
| md |
|
| lg |
@ocean-network-express/magenta-ui/icons package.leftIcon and rightIcon.disabled prop to true.