React components and hooks for dash-ui
npm install @dash-ui/react
React components and hooks for dash-ui
npm i @dash-ui/react
> NOTE: You do not need to use this package to use @dash-ui with React. This merely
> provides a few useful utilities, particularly on the server-side.
Check out an example on CodeSandbox
``jsx harmony
import { createStyles } from "@dash-ui/styles";
import { useGlobal } from "@dash-ui/react";
const styles = createStyles({
tokens: {
color: {
primary: "#ee5b5f",
},
},
});
const Heading = () => {
useGlobal(
styles,
({ color }) =>
h1 {
font-size: 2rem;
font-family: -apple-system, sans-serif;
color: ${color.primary};
}
,
[]
);
return
API docs
$3
| Component | Description |
| --------------------- | ----------------------------------------------------------------------------------------------- |
|
| A component for creating an inline