import React from "react"; import { storiesOf } from "@storybook/react"; import { boolean, text } from "@storybook/addon-knobs"; import { action } from "@storybook/addon-actions"; import { LayoutGrid, LayoutGridCell, LayoutGridContainer } from "./layout-grid"; import { Grid, GridCell, GridContainer } from "../Grid/grid"; import NavBar from "../NavBar"; import Code from "../Code"; import Button from "../Button"; const openLogoUrl = "https://app.optimizely.com/dist/static/img/rebrand/logo-f64d2aed989db744b609666199d7d2a2.svg"; const storiesForRow = storiesOf("Layout|LayoutGrid", module); storiesForRow.addDecorator(story =>
{story()}
); const borderStyleProp = { style: { border: "1px solid black" } }; storiesForRow .add("Legacy Epi layout", () => { return ( Navigation Work Item Navigation
Toolbar
Workspace
Contextual Toolbar
); }) .add("Legacy Opti layout", () => { return ( {boolean("isOpen", true) && "5 days left in your trial"} } > Tabs/Header Stage ); }) .add("Responsive Showcase", () => { return (

Features

Manage your app’s feature flags

What’s a Feature Flag?
{/* eslint-disable max-len */}

Feature flags, also known as feature toggles, are a software development technique that lets you turn certain functionality on and off without deploying new code. This allows for better control and more experimentation over the full lifecycle of features. You can toggle a feature off to release code quickly without exposing it to users.

{/* eslint-enable max-len */}
Try it for yourself
{"var enabled = optimizely.isFeatureEnabled(”chat_window”, userId);" + "\nif(enabled)\n{\n // Feature is enabled\n}" + "\nelse {\n // Feature is disabled\n}"}
); });