UNPKG

stylelint-processor-styled-components

Version:
42 lines (30 loc) 892 B
import * as React from 'react'; import styled, { keyframes } from 'styled-components'; export interface IAccordionContainerProps { className?: string; borderWidth: number, onChange?(id: string): void; } export interface IAccordionContainerState { selected: string; } export const AccordionContainerDiv = styled.div` border: solid ${(props: IAccordionContainerProps) => props.borderWidth}px; border-bottom-width: 0; width: auto; `; // ⚠️ EMPTY BLOCK ⚠️ export const Button = styled.button` ` // ⚠️ BAD INDENTATION ⚠️ export const Button2 = styled.button` color: blue; ` // ⚠️ BAD INDENTATION ⚠️ (Generic Type) export const Button3 = styled.button<IAccordionContainerProps>` color: blue; `; // ⚠️ BAD INDENTATION ⚠️ (Inline Generic Type) export const Button4 = styled.button<{ a: boolean; b: string }>` color: blue; `;