Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@highlight-ui/action-bar
Advanced tools
Using npm:
npm install @highlight-ui/action-bar
Using yarn:
yarn add @highlight-ui/action-bar
Using pnpm:
pnpm install @highlight-ui/action-bar
In your (S)CSS file:
@import url('@highlight-ui/action-bar');
Once the package is installed, you can import the library:
import { ActionBar, ActionBarProps } from '@highlight-ui/action-bar';
import React, { useState } from 'react';
import { ActionBar } from '@highlight-ui/action-bar';
export default function ActionBarExample() {
return (
<ActionBar
variant="inline"
primaryAction={{
label: 'Save',
onClick: callback(action('Primary action clicked')),
}}
/>
);
}
Prop | Type | Required | Default | Description |
---|---|---|---|---|
variant | 'inline', 'fullwidth' | Yes | inline | When inline , uses position: sticky to position the ActionBar and uses 100% of its container's width. When full-width , uses position: fixed to position the ActionBar and uses 100% - 64px of its container's width. |
primaryAction | ActionButtonProps | Yes | Allows passing props to the primary action button | |
secondaryAction | ActionButtonProps | No | Allows passing props to the secondary action button | |
information | React.ReactNode | No | Allows rendering any element on the left side of the ActionBar. If specified, the action buttons will be aligned to the right. |
Type | Values | Description |
---|---|---|
ActionButtonProps | {label: string, onClick?: () => void, buttonState: ButtonProps['buttonState']} | Used for the primaryAction and secondaryAction props |
Please visit personio.design for usage guidelines and visual examples.
If you're interested in contributing, please visit our contribution page.
FAQs
ActionBar component for the Highlight UI library
The npm package @highlight-ui/action-bar receives a total of 257 weekly downloads. As such, @highlight-ui/action-bar popularity was classified as not popular.
We found that @highlight-ui/action-bar demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.