Atri-Labs / atrilabs-engine

🧘‍♂️ Open-source no-code & code web app builder
https://atrilabs.com
GNU General Public License v3.0
4.13k stars 182 forks source link

Add Alert Component #185

Closed cruxcode closed 1 year ago

cruxcode commented 2 years ago

Component Signature:

export type AlertProps = {
  styles: React.CSSProperties;
  custom: {
    title: string;
    description?: string;
    statusIcon?: string;
  };
};

export const Alert: React.FC<AlertProps> = React.forwardRef((ref, props) => {
  return <div></div>;
});

Hint for custom props:

const customTreeOptions: CustomPropsTreeOptions = {
  dataTypes: {
    title: "text",
    description: "text",
    statusIcon: "static_asset",
  },
};

Screen Shot 2022-09-15 at 2 14 29 PM

cruxcode commented 2 years ago

Relevant discussions for this issue #169 #184 #180 #186 #187

A good reference component can be https://github.com/Atri-Labs/atrilabs-engine/blob/main/packages/react-component-manifests/src/manifests/Image/Image.tsx

jonathanalvares9009 commented 2 years ago

Hi @cruxcode, could you assign me this issue please?

PansaraPriyanshi commented 2 years ago

Can I work on thi issue?

shashtag commented 2 years ago

Hey! @cruxcode can you please assign me this issue.

Am10aN16 commented 2 years ago

Hey can u please assign me this issue

Mahe9041 commented 2 years ago

Hi @cruxcode, could you assign me this issue please?

SurajPhulara commented 2 years ago

Hey @cruxcode can u please assign me this issue.

sahilsuman933 commented 1 year ago

@cruxcode can I work on this issue?

darshitac11 commented 1 year ago

@all-contributors please add @PansaraPriyanshi for userTesting

allcontributors[bot] commented 1 year ago

@darshitac11

I've put up a pull request to add @PansaraPriyanshi! :tada:

darshitac11 commented 1 year ago

@all-contributors please add @shashtag for userTesting

allcontributors[bot] commented 1 year ago

@darshitac11

I've put up a pull request to add @shashtag! :tada:

darshitac11 commented 1 year ago

@all-contributors please add @Am10aN16 for userTesting

allcontributors[bot] commented 1 year ago

@darshitac11

I've put up a pull request to add @Am10aN16! :tada:

darshitac11 commented 1 year ago

@all-contributors please add @Mahe9041 for userTesting

allcontributors[bot] commented 1 year ago

@darshitac11

I've put up a pull request to add @Mahe9041! :tada:

darshitac11 commented 1 year ago

@all-contributors please add @sahilsuman933 for userTesting

allcontributors[bot] commented 1 year ago

@darshitac11

I've put up a pull request to add @sahilsuman933! :tada:

jonathanalvares9009 commented 1 year ago

This issue is not yet resolved

jonathanalvares9009 commented 1 year ago

TODO