How to use the @salesforce/design-system-react.Lookup.DefaultSectionDivider function in @salesforce/design-system-react

To help you get started, we’ve selected a few @salesforce/design-system-react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github quip / quip-apps / examples / salesforce-lightning-design-system / src / Modals.jsx View on Github external
onSelect={item => {
                                    console.log(item, " Selected");
                                }}
                                options={[
                                    {type: "section", label: "SECTION 1"},
                                    {label: "Paddy's Pub"},
                                    {label: "Tyrell Corp"},
                                    {type: "section", label: "SECTION 2"},
                                    {label: "Paper St. Soap Company"},
                                    {label: "Nakatomi Investments"},
                                    {label: "Acme Landscaping"},
                                    {type: "section", label: "SECTION 3"},
                                    {label: "Acme Construction"},
                                ]}
                                sectionDividerRenderer={
                                    Lookup.DefaultSectionDivider
                                }
                            />
                        
                        <div>
                             {
                                        const selection =
                                            data.selection.length === 0
                                                ? this.state.leadSourceSelection
                                                : data.selection;
                                        console.log(
                                            "selected: ",
                                            selection[0].label
                                        );
                                        this.setState({</div>

@salesforce/design-system-react

Salesforce Lightning Design System for React

BSD-3-Clause
Latest version published 3 months ago

Package Health Score

84 / 100
Full package analysis