@carbon/ibm-products-web-components
v0.29.0
Published
Carbon for IBM Products Web Components
Downloads
1,579
Readme
@carbon/ibm-products-web-components
Carbon for IBM Products web components
Getting started
If you’re just getting started and looking to browse our web components, take a look at our Storybook.
📦 Installing Carbon for IBM Products web components
To use Carbon for IBM Products web components, all you need to do is install the
@carbon/ibm-products-web-components package.
$ yarn add @carbon/ibm-products-web-components
# or
$ npm install @carbon/ibm-products-web-componentsThen you can import the component styles in your index.js.
import '@carbon/ibm-products/css/index.min.css';Usage
To use a component, you can import it directly from the package:
import '@carbon/ibm-products-web-components/es/components/about-modal.js';Once you've imported the component modules, you can use the components in the same manner as native HTML tags:
<c4p-about-modal
closeIconDescription="Close"
copyrightText="Copyright © IBM Corp. 2025"
.title="IBM Product Name"
.version="0.0.0"
></c4p-about-modal>📖 API Documentation
If you're looking for @carbon/ibm-products-web-components API documentation,
check out:
Building and running Storybook locally
To get started, run the following commands and Storybook will be built and then
served on port 3000 on your local machine.
If this is your first time running web components in Storybook, run the following commands:
yarn
yarn buildThen run Storybook:
yarn storybook-wc🙌 Contributing
We're always looking for contributors to help us fix bugs, build new features, or help us improve the project documentation. If you're interested, definitely check out our Contributing Guide! 👀
📝 License
Licensed under the Apache 2.0 License.
IBM Telemetry
This package uses IBM Telemetry to collect de-identified and anonymized metrics data. By installing this package as a dependency you are agreeing to telemetry collection. To opt out, see Opting out of IBM Telemetry data collection. For more information on the data being collected, please see the IBM Telemetry documentation.
