Files
pwap/pezkuwi-sdk-ui/packages/react-components/src/Button/Group.tsx
T
Claude c71ddb6e0d Add Pezkuwi SDK UI - Polkadot.js Apps clone
- Clone Polkadot.js Apps repository
- Update package.json with Pezkuwi branding
- Add Pezkuwi endpoint to production chains (wss://pezkuwichain.app:9944)
- Create comprehensive README for SDK UI
- Set up project structure with all packages

Next steps:
- Apply Kurdistan colors (Kesk, Sor, Zer, Spi + Black) to UI theme
- Replace logos with Pezkuwi branding
- Test build and deployment
2025-11-14 00:55:17 +00:00

54 lines
978 B
TypeScript

// Copyright 2017-2025 @polkadot/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
import React from 'react';
import { styled } from '../styled.js';
interface Props {
children?: React.ReactNode;
className?: string;
isCentered?: boolean;
}
function ButtonGroup ({ children, className = '', isCentered }: Props): React.ReactElement<Props> {
return (
<StyledDiv className={`${className} ui--Button-Group ${isCentered ? 'isCentered' : ''}`}>
{children}
<div className='clear' />
</StyledDiv>
);
}
const StyledDiv = styled.div`
margin: 1rem 0;
text-align: right;
& .clear {
clear: both;
}
&.isCentered {
margin-bottom: 0.5rem;
text-align: center;
}
&+.ui--Table {
margin-top: 1.5rem;
}
.ui--Button {
margin: 0 0.25rem;
}
.ui--CopyButton {
display: inline-block;
}
.ui--ToggleGroup, .ui--Dropdown {
float: left;
}
`;
export default React.memo(ButtonGroup);