ghost-keychain/packages/extension-ui/src/components/Label.tsx
Jaco ca595cdfab
2024 (#1302)
* 2024

* 2024
2024-01-08 15:05:09 +02:00

35 lines
708 B
TypeScript

// Copyright 2019-2024 @polkadot/extension-ui authors & contributors
// SPDX-License-Identifier: Apache-2.0
import React from 'react';
import { styled } from '../styled.js';
interface Props {
children: React.ReactNode;
className?: string;
label: string;
}
function Label ({ children, className, label }: Props): React.ReactElement<Props> {
return (
<div className={className}>
<label>{label}</label>
{children}
</div>
);
}
export default styled(Label)<Props>`
color: var(--textColor);
label {
font-size: var(--inputLabelFontSize);
line-height: 14px;
letter-spacing: 0.04em;
opacity: 0.65;
margin-bottom: 12px;
text-transform: uppercase;
}
`;