Yarn start will run the demo application for whoever is testing it. Following, you will be able to see more information regarding the react-log-viwer component itself.
More features are being worked on at the moment, and the docs will be updated with these in the following weeks.
id: Logger cssPrefix: pf-c-logger propComponents: [ Logger, LoggerToolbar, LoggerRow, ] section: components beta: true
import React from 'react';
import Logger from '@patternfly/react-core';
import testData from './src/data/testData';
const LoggerBasicExample = () => {
return (
<React.Fragment>
<Logger title={'Logger Example'} data={testData} />
</React.Fragment>
);
};
import React from 'react';
import Logger from '@patternfly/react-core';
import testData from './src/data/testData.js';
const LoggerToolbarExample = () => {
return (
<React.Fragment>
<Logger title={'Logger Example'} data={testData} hasSearchbar />
</React.Fragment>
);
};
export default LoggerExample;
import React from 'react';
import Logger from '@patternfly/react-core';
import testData from './src/data/testData.js';
const LoggerToolbarExample = () => {
return (
<React.Fragment>
<Logger title={'Logger Example'} data={testData} hasSearchbar />
</React.Fragment>
);
};
export default LoggerExample;