UNPKG

@neo4j-ndl/react

Version:

React implementation of Neo4j Design System

29 lines 3.38 kB
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; /** * * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. * * Neo4j is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ import '@neo4j-ndl/base/lib/neo4j-ds-styles.css'; import { IconButton, Typography } from '@neo4j-ndl/react'; import { MagnifyingGlassIconOutline } from '@neo4j-ndl/react/icons'; const Component = () => { return (_jsxs("div", { className: "n-flex n-flex-col n-gap-token-6", children: [_jsxs("div", { className: "n-flex n-flex-row n-gap-token-6 n-items-center", children: [_jsx(IconButton, { ariaLabel: "Search icon", onClick: () => alert('Default button clicked'), children: _jsx(MagnifyingGlassIconOutline, {}) }), _jsx(Typography, { variant: "label", children: " Default" })] }), _jsxs("div", { className: "n-flex n-flex-row n-gap-token-6 n-items-center", children: [_jsx(IconButton, { ariaLabel: "Search icon", isClean: true, onClick: () => alert('Clean button clicked'), children: _jsx(MagnifyingGlassIconOutline, {}) }), _jsx(Typography, { variant: "label", children: " Clean" })] }), _jsxs("div", { className: "n-flex n-flex-row n-gap-token-6 n-items-center", children: [_jsx(IconButton, { ariaLabel: "Search icon", isDanger: true, onClick: () => alert('Danger button clicked'), children: _jsx(MagnifyingGlassIconOutline, {}) }), _jsx(Typography, { variant: "label", children: " Danger" })] }), _jsxs("div", { className: "n-flex n-flex-row n-gap-token-6 n-items-center", children: [_jsx(IconButton, { ariaLabel: "Search icon", isFloating: true, onClick: () => alert('Floating button clicked'), children: _jsx(MagnifyingGlassIconOutline, {}) }), _jsx(Typography, { variant: "label", children: " Floating" })] }), _jsxs("div", { className: "n-flex n-flex-row n-gap-token-6 n-items-center", children: [_jsx(IconButton, { ariaLabel: "Search icon", isGrouped: true, onClick: () => alert('Grouped button clicked'), children: _jsx(MagnifyingGlassIconOutline, {}) }), _jsx(Typography, { variant: "label", children: " Grouped" })] }), _jsxs("div", { className: "n-flex n-flex-row n-gap-token-6 n-items-center", children: [_jsx(IconButton, { ariaLabel: "Search icon", isDisabled: true, onClick: () => alert('Disabled button clicked'), children: _jsx(MagnifyingGlassIconOutline, {}) }), _jsx(Typography, { variant: "label", children: " Disabled" })] }), _jsxs("div", { className: "n-flex n-flex-row n-gap-token-6 n-items-center", children: [_jsx(IconButton, { ariaLabel: "Search icon", isLoading: true, onClick: () => alert('Loading button clicked'), children: _jsx(MagnifyingGlassIconOutline, {}) }), _jsx(Typography, { variant: "label", children: " Loading" })] })] })); }; export default Component; //# sourceMappingURL=icon-button-variants.story.js.map