Iris
A Clear Channel Outdoor display component library
Example NextJS Primitive Component Usage
To install
npm install @clearchannel/iris
import { CCOThemeProvider } from '@clearchannel/iris'
const NextApp = ({ Component, pageProps }) => {
<CCOThemeProvider>
<Component {...pageProps} />
</CCOThemeProvider>
}
export default NextApp
import Button from '@material-ui/core/Button'
const Index = () => <Button>
Index just renders a static button with this
awful message, how boring!
</Button>
export default Index
Storybook
Use Storybook to preview components and use hot reloading as you work.
npm run storybook
Overview
Iris comes in two types of components:
Generally, primitive components will exist as direct implementations of Material UI components, with a dependency on Iris's CCOThemeProvider
to provide extended theme properties.
Composed components (todo: make composed components) are housed in this package as individual exports. Create a composed component to produce reusable UI widgets that depend on multiple MUI components, state, or specific business logic.
Further Reading: