Alert/Alert.styled.ts

kafka-ui · kafka-ui-react-app/src/components/common/Alert/Alert.styled.ts · typescript · Apache-2.0
ui, tag:embed-classified

Styled-components definitions for a themed alert box in a React app.

// Source: https://github.com/provectus/kafka-ui | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import styled from 'styled-components';
import { ToastTypes } from 'lib/errorHandling';

export const Alert = styled.div<{ $type: ToastTypes }>`
  background-color: ${({ $type, theme }) => theme.alert.color[$type]};
  width: 500px;
  min-height: 64px;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  filter: drop-shadow(0px 4px 16px ${({ theme }) => theme.alert.shadow});
  margin-top: 10px;
  line-height: 20px;
`;

export const Title = styled.div`
  font-weight: 500;
  font-size: 14px;
`;

export const Message = styled.

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key