ST

Storybook

storybook

Storybook: Develop, document, and test UI components in isolation

React Native Libraries
storybook
component
components
design-systems
component-testing
react
next
next.js
react-native
react-native-web
Stars
1
Weekly
0
Open issues
0
Bundle
~60 kB

Installation

npm install storybook

Code example

import { View, Text, StyleSheet } from "react-native";
import { Storybook } from "storybook";

export function Example() {
  return (
    <View style={styles.box}>
      <Text style={styles.title}>Storybook</Text>
      <Storybook />
    </View>
  );
}

const styles = StyleSheet.create({
  box: { flex: 1, alignItems: "center", justifyContent: "center", gap: 8 },
  title: { fontSize: 18, fontWeight: "600" },
});

Pros & cons

Pros

  • Actively maintained by ndelangen
  • 0 weekly downloads. Battle tested
  • MIT licensed

Considerations

  • Adds roughly ~60 kB to your bundle
  • 0 open issues on GitHub

FAQs

Alternatives & similar libraries