
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@splunk/react-ui
Advanced tools
A library of UI components that implement the Splunk design language in React.
Install the package and its dependencies.
npm install react@^16 react-dom@^16 styled-components@^4
npm install @splunk/react-ui
@splunk/react-ui
and React support production and development builds. The production build removes warnings and guidance from the output. To create a production build, set the environment variable NODE_ENV
to "production"
and use the webpack DefinePlugin to inject the variable into the code.
Nearly all components accept node
children. Only components that
require specific constraints include information about the children
prop in
its documentation.
Pass style to control layout, margins, or positioning. See the following example:
<Button label="Hello" style={{ flexBasis: '200px' }} />
Alternatively, you can use a component's inline property to switch between
inline-block/inline-flex
and block/flex
. You can use this property instead
of passing a style prop. See the following example:
<Button inline={false} />
Avoid using className
.
Avoid overriding style sheets. When selector specificity changes, the change can break style sheet overrides.
The generated markup isn't an API and may change at any time without notice, even in a patch release. The selector specificity also isn't an API and may change at any time without notice.
The component library doesn't include fonts. You must define and load fonts in a @font-face
declaration. By default, the components render in "Splunk Platform Sans", an alias of "Proxima Nova", and "Splunk Platform Mono", an alias of "Inconsolata".
Please make sure to obtain all required font licenses.
For quick reference, most themes use the following font-family stack:
Sans (default): Splunk Platform Sans, Proxima Nova, Roboto, Droid, Helvetica Neue,
Helvetica, Arial, sans-serif;
Mono: Splunk Platform Mono, Inconsolata, Consolas, Droid Sans Mono, Monaco,
Courier New, Courier, monospace;
Individual themes might use different fonts.
FAQs
Library of React components that implement the Splunk design language
The npm package @splunk/react-ui receives a total of 1,685 weekly downloads. As such, @splunk/react-ui popularity was classified as popular.
We found that @splunk/react-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.