@neo4j-ndl/react
Version:
React implementation of Neo4j Design System
44 lines (28 loc) • 902 B
Markdown
Import: `import { LoadingBar } from '@neo4j-ndl/react'`
| Prop | Type | Required | Default | Description |
|------|------|----------|---------|-------------|
| `as` | `ElementType<any, keyof IntrinsicElements>` | | | An override of the default HTML tag of the root of the component. Can also be another React component. |
| `hasRail` | `boolean` | | `false` | |
| `ref` | `any` | | | A ref to apply to the root element. |
```tsx
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
import { LoadingBar } from '@neo4j-ndl/react';
const Component = () => {
return <LoadingBar />;
};
export default Component;
```
```tsx
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
import { LoadingBar } from '@neo4j-ndl/react';
const Component = () => {
return <LoadingBar hasRail />;
};
export default Component;
```