@ag.ds-next/core
Advanced tools
Comparing version 2.1.2 to 2.1.3
# @ag.ds-next/core | ||
## 2.1.3 | ||
### Patch Changes | ||
- e8ea2abe: Updated documentation | ||
## 2.1.2 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@ag.ds-next/core", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"main": "dist/ag.ds-next-core.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/ag.ds-next-core.esm.js", |
@@ -9,14 +9,34 @@ --- | ||
It accepts a `theme` prop that enables overwriting of the default theme. | ||
### Theming | ||
The `Core` component accepts a `theme` prop that enables overwriting of the default theme. | ||
```jsx | ||
import { Core } from '@ag.ds-next/core'; | ||
export const App = () => ( | ||
<Core theme={theme} linkComponent={LinkComponent}> | ||
<MyApplication /> | ||
</Core> | ||
); | ||
export default function MyApp({ Component, pageProps }) { | ||
return ( | ||
<Core theme={theme}> | ||
<Component {...pageProps} /> | ||
</Core> | ||
); | ||
} | ||
``` | ||
### Routing / Linking | ||
Our component library has been designed to work with any react routing library. For an example of configuring routing/links in AgDS for a Next.js application, please see [our example site](https://github.com/steelthreads/agds-next/tree/main/example-site/components/LinkComponent.tsx). | ||
```jsx | ||
import { Core } from '@ag.ds-next/core'; | ||
export default function MyApp({ Component, pageProps }) { | ||
return ( | ||
<Core theme={theme} linkComponent={LinkComponent}> | ||
<Component {...pageProps} /> | ||
</Core> | ||
); | ||
} | ||
``` | ||
## Design Tokens | ||
@@ -23,0 +43,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
113544
152