Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
import { Chip as ChipComponent } from "./chip";
import { StorySection, StoryGrid } from "./storybook";
export default {
title: "Chip",
component: ChipComponent,
};
export const Chip = () => (
<>
<StorySection title="Colors">
<StoryGrid horizontal>
<ChipComponent>Neutral</ChipComponent>
<ChipComponent color="green">Green</ChipComponent>
<ChipComponent color="purple">Purple</ChipComponent>
</StoryGrid>
</StorySection>
<StorySection title="Truncated">
<StoryGrid css={{ width: 120 }}>
<ChipComponent>Very long chip label that should truncate</ChipComponent>
</StoryGrid>
</StorySection>
</>
);