@neo4j-ndl/react
Version:
React implementation of Neo4j Design System
58 lines (37 loc) • 1.03 kB
Markdown
Import: `import { Logo } from '@neo4j-ndl/react'`
| Prop | Type | Required | Default | Description |
|------|------|----------|---------|-------------|
| `color` | `'black' \| 'color' \| 'white'` | | | |
| `ref` | `Ref<SVGSVGElement>` | | | A ref to apply to the root element. |
| `type` | `'full' \| 'icon'` | | `full` | |
```tsx
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
import { Logo } from '@neo4j-ndl/react';
const Component = () => {
return <Logo className="n-w-24" />;
};
export default Component;
```
```tsx
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
import { Logo } from '@neo4j-ndl/react';
const Component = () => {
return <Logo className="n-w-24" color="black" />;
};
export default Component;
```
```tsx
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
import { Logo } from '@neo4j-ndl/react';
const Component = () => {
return <Logo className="n-w-24" type="icon" />;
};
export default Component;
```