UNPKG

@neo4j-ndl/react

Version:

React implementation of Neo4j Design System

44 lines (28 loc) 902 B
# LoadingBar Import: `import { LoadingBar } from '@neo4j-ndl/react'` ## Props ### LoadingBar | 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. | ## Examples ### Default ```tsx import '@neo4j-ndl/base/lib/neo4j-ds-styles.css'; import { LoadingBar } from '@neo4j-ndl/react'; const Component = () => { return <LoadingBar />; }; export default Component; ``` ### With Rail ```tsx import '@neo4j-ndl/base/lib/neo4j-ds-styles.css'; import { LoadingBar } from '@neo4j-ndl/react'; const Component = () => { return <LoadingBar hasRail />; }; export default Component; ```