@canonical/react-ds-global
v0.11.0
Published
This package provides the core React components and utilities for Canonical's Design System.
Downloads
333
Maintainers
Keywords
Readme
Canonical Design System - React Core
This package provides the core React components and utilities for Canonical's Design System.
Getting Started
Install the package in a React 19 project with bun add @canonical/react-ds-global.
Then, import components from the package and use them in your React components.
An example of a component using the Button component:
// MyComponent.tsx
import { Button } from "@canonical/react-ds-global";
function MyComponent() {
return (
<div>
<Button
appearance={"positive"}
label={"Click me"}
onClick={() => alert("hello world!")}
/>
</div>
);
}
export default MyComponent;