@salesforce/design-system-react
Version:
Salesforce Lightning Design System for React
14 lines (9 loc) • 394 B
JSX
import React from 'react';
import Radio from '~/components/radio'; // `~` is replaced with design-system-react at runtime
class Example extends React.Component {
static displayName = 'RadioExample';
render() {
return <Radio id="radioId1" labels={{ label: 'Radio Label' }} />;
}
}
export default Example; // export is replaced with `ReactDOM.render(<Example />, mountNode);` at runtime