How to use the fundamental-react.Button.defaultProps function in fundamental-react

To help you get started, we’ve selected a few fundamental-react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kyma-project / console / components / react-odata / src / components / styled / styled.ts View on Github external
};

export const CollapseButton = styled(Button)`
  && {
    direction: rtl;
    margin-bottom: 20px;
  }
  &:before {
    margin-right: 0;
    margin-left: 8px;
    transition: 0.3s ease;
    ${(props: { open?: boolean }) => props.open && 'transform: rotate(90deg);'};
  }
`;

Button.defaultProps = {
  option: 'emphasized',
  glyph: 'feeder-arrow',
};

export const TablePanel = styled(Panel)`
  && {
    box-shadow: none;
  }
`;

export const TableHeaderWrapper = styled(PanelHeader)`
  && {
    border-top: solid 1px #eeeeef;
    border-bottom: none;
    box-shadow: none;
    padding-left: 20px;